disable ffmpeg ram codec temporarily (#6927)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
		
							parent
							
								
									9e3633f1e4
								
							
						
					
					
						commit
						267342e7e6
					
				
							
								
								
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							| @ -3079,7 +3079,7 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" | |||||||
| [[package]] | [[package]] | ||||||
| name = "hwcodec" | name = "hwcodec" | ||||||
| version = "0.2.0" | version = "0.2.0" | ||||||
| source = "git+https://github.com/21pages/hwcodec?branch=stable#da8aec8e8abb6a5506e027484023e6e2ad1f47eb" | source = "git+https://github.com/21pages/hwcodec?branch=stable#42cfa3f9e5138d3dbdea83ea87d4c4bf798fef51" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "bindgen 0.59.2", |  "bindgen 0.59.2", | ||||||
|  "cc", |  "cc", | ||||||
|  | |||||||
| @ -708,11 +708,18 @@ impl Decoder { | |||||||
| 
 | 
 | ||||||
| #[cfg(any(feature = "hwcodec", feature = "mediacodec"))] | #[cfg(any(feature = "hwcodec", feature = "mediacodec"))] | ||||||
| pub fn enable_hwcodec_option() -> bool { | pub fn enable_hwcodec_option() -> bool { | ||||||
|  |     #[cfg(feature = "hwcodec")] | ||||||
|  |     { | ||||||
|  |         return false; | ||||||
|  |     } | ||||||
|  |     #[cfg(feature = "mediacodec")] | ||||||
|  |     { | ||||||
|         if let Some(v) = Config2::get().options.get("enable-hwcodec") { |         if let Some(v) = Config2::get().options.get("enable-hwcodec") { | ||||||
|             return v != "N"; |             return v != "N"; | ||||||
|         } |         } | ||||||
|         return true; // default is true
 |         return true; // default is true
 | ||||||
|     } |     } | ||||||
|  | } | ||||||
| #[cfg(feature = "gpucodec")] | #[cfg(feature = "gpucodec")] | ||||||
| pub fn enable_gpucodec_option() -> bool { | pub fn enable_gpucodec_option() -> bool { | ||||||
|     if let Some(v) = Config2::get().options.get("enable-hwcodec") { |     if let Some(v) = Config2::get().options.get("enable-hwcodec") { | ||||||
|  | |||||||
| @ -381,6 +381,7 @@ pub fn check_available_hwcodec() { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| pub fn hwcodec_new_check_process() { | pub fn hwcodec_new_check_process() { | ||||||
|  |     /* | ||||||
|     use std::sync::Once; |     use std::sync::Once; | ||||||
|     let f = || { |     let f = || { | ||||||
|         // Clear to avoid checking process errors
 |         // Clear to avoid checking process errors
 | ||||||
| @ -423,4 +424,5 @@ pub fn hwcodec_new_check_process() { | |||||||
|     ONCE.call_once(|| { |     ONCE.call_once(|| { | ||||||
|         std::thread::spawn(f); |         std::thread::spawn(f); | ||||||
|     }); |     }); | ||||||
|  |     */ | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user