mirror of
				https://github.com/jojo61/vdr-plugin-softhdcuvid.git
				synced 2025-03-01 10:39:28 +00:00 
			
		
		
		
	Fix CUVID without placebo
This commit is contained in:
		
							
								
								
									
										2
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								video.c
									
									
									
									
									
								
							| @@ -1624,6 +1624,7 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder) | ||||
| #ifdef PLACEBO | ||||
| 			if (p->hasdma_buf) { | ||||
| #endif | ||||
| #ifdef VAAPI | ||||
| 				if (decoder->images[i * Planes + j]) { | ||||
| 					DestroyImageKHR(eglGetCurrentDisplay(), decoder->images[i * Planes + j]); | ||||
| 					if (decoder->fds[i * Planes + j]) | ||||
| @@ -1631,6 +1632,7 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder) | ||||
| 				} | ||||
| 				decoder->fds[i * Planes + j] = 0; | ||||
| 				decoder->images[i * Planes + j] = 0; | ||||
| #endif | ||||
| #ifdef PLACEBO | ||||
| 			} | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user