mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Disable VA-API if init fails.
This commit is contained in:
		
							
								
								
									
										2
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								video.c
									
									
									
									
									
								
							| @@ -1451,6 +1451,7 @@ static void VideoVaapiInit(const char *display_name) | ||||
| 	Error(_("video/vaapi: Can't connect VA-API to X11 server on '%s'"), | ||||
| 	    display_name); | ||||
| 	// FIXME: no fatal for plugin | ||||
| 	VideoVaapiEnabled = 0; | ||||
| 	return; | ||||
|     } | ||||
|  | ||||
| @@ -1459,6 +1460,7 @@ static void VideoVaapiInit(const char *display_name) | ||||
| 	    display_name); | ||||
| 	vaTerminate(VaDisplay); | ||||
| 	VaDisplay = NULL; | ||||
| 	VideoVaapiEnabled = 0; | ||||
| 	return; | ||||
|     } | ||||
|     s = vaQueryVendorString(VaDisplay); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user