Fix exceptions handlers
This commit is contained in:
		
					parent
					
						
							
								4582e152df
							
						
					
				
			
			
				commit
				
					
						32de2b39da
					
				
			
		
					 5 changed files with 58 additions and 10 deletions
				
			
		|  | @ -27,6 +27,7 @@ class FFProbe extends Binary | |||
|      * @param string $pathfile | ||||
|      * @return string | ||||
|      * @throws Exception\InvalidFileArgumentException | ||||
|      * @throws Exception\RuntimeException | ||||
|      */ | ||||
|     public function probeFormat($pathfile) | ||||
|     { | ||||
|  | @ -46,6 +47,7 @@ class FFProbe extends Binary | |||
|      * @param string $pathfile | ||||
|      * @return string | ||||
|      * @throws Exception\InvalidFileArgumentException | ||||
|      * @throws Exception\RuntimeException | ||||
|      */ | ||||
|     public function probeStreams($pathfile) | ||||
|     { | ||||
|  | @ -56,14 +58,7 @@ class FFProbe extends Binary | |||
| 
 | ||||
|         $cmd = $this->binary . ' ' . $pathfile . ' -show_streams'; | ||||
| 
 | ||||
|         try | ||||
|         { | ||||
|             return $this->executeProbe($cmd); | ||||
|         } | ||||
|         catch (Exception\RuntimeException $e) | ||||
|         { | ||||
| 
 | ||||
|         } | ||||
|         return $this->executeProbe($cmd); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue