mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix crash with VA-API vdpau backend.
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
User johns
 | 
			
		||||
Date:
 | 
			
		||||
 | 
			
		||||
    Fix crash with VA-API vdpau backend.
 | 
			
		||||
 | 
			
		||||
User mini73
 | 
			
		||||
Date: Sat Oct 11 16:53:18 CEST 2014
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										18
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								video.c
									
									
									
									
									
								
							@@ -2380,15 +2380,17 @@ static int VaapiInit(const char *display_name)
 | 
			
		||||
	int entrypoint_n;
 | 
			
		||||
	int i;
 | 
			
		||||
 | 
			
		||||
	vaQueryConfigEntrypoints(VaDisplay, VAProfileNone, entrypoints,
 | 
			
		||||
	    &entrypoint_n);
 | 
			
		||||
 | 
			
		||||
	VaapiVideoProcessing = 0;
 | 
			
		||||
	for (i = 0; i < entrypoint_n; i++) {
 | 
			
		||||
	    if (entrypoints[i] == VAEntrypointVideoProc) {
 | 
			
		||||
		Info("video/vaapi: supports video processing\n");
 | 
			
		||||
		VaapiVideoProcessing = 1;
 | 
			
		||||
		break;
 | 
			
		||||
	if (!vaQueryConfigEntrypoints(VaDisplay, VAProfileNone, entrypoints,
 | 
			
		||||
		&entrypoint_n)) {
 | 
			
		||||
 | 
			
		||||
	    for (i = 0; i < entrypoint_n; i++) {
 | 
			
		||||
		fprintf(stderr, "oops %d\n", i);
 | 
			
		||||
		if (entrypoints[i] == VAEntrypointVideoProc) {
 | 
			
		||||
		    Info("video/vaapi: supports video processing\n");
 | 
			
		||||
		    VaapiVideoProcessing = 1;
 | 
			
		||||
		    break;
 | 
			
		||||
		}
 | 
			
		||||
	    }
 | 
			
		||||
	}
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user