mirror of
				https://github.com/jojo61/vdr-plugin-softhdcuvid.git
				synced 2025-03-01 10:39:28 +00:00 
			
		
		
		
	Remove vaapi Lock for DRM
This commit is contained in:
		| @@ -61,7 +61,7 @@ extern void ToggleLUT(); | |||||||
| /// vdr-plugin version number. | /// vdr-plugin version number. | ||||||
| /// Makefile extracts the version number for generating the file name | /// Makefile extracts the version number for generating the file name | ||||||
| /// for the distribution archive. | /// for the distribution archive. | ||||||
| static const char *const VERSION = "3.8" | static const char *const VERSION = "3.9" | ||||||
| #ifdef GIT_REV | #ifdef GIT_REV | ||||||
|                                    "-GIT" GIT_REV |                                    "-GIT" GIT_REV | ||||||
| #endif | #endif | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								video.c
									
									
									
									
									
								
							| @@ -2375,7 +2375,11 @@ void generateVAAPIImage(CuvidDecoder *decoder, int index, const AVFrame *frame, | |||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|     // vaSyncSurface(decoder->VaDisplay, (unsigned int)frame->data[3]); |     // vaSyncSurface(decoder->VaDisplay, (unsigned int)frame->data[3]); | ||||||
|  | #ifdef USE_DRM | ||||||
|  |     SharedContext; | ||||||
|  | #else | ||||||
|     Lock_and_SharedContext; |     Lock_and_SharedContext; | ||||||
|  | #endif | ||||||
|     for (n = 0; n < 2; n++) { //  Set DMA_BUF from VAAPI decoder to Textures |     for (n = 0; n < 2; n++) { //  Set DMA_BUF from VAAPI decoder to Textures | ||||||
|         int id = desc.layers[n].object_index[0]; |         int id = desc.layers[n].object_index[0]; | ||||||
|         int fd = desc.objects[id].fd; |         int fd = desc.objects[id].fd; | ||||||
| @@ -2448,7 +2452,11 @@ void generateVAAPIImage(CuvidDecoder *decoder, int index, const AVFrame *frame, | |||||||
|  |  | ||||||
|         decoder->pl_frames[index].planes[n].texture = pl_tex_create(p->gpu, &tex_params); |         decoder->pl_frames[index].planes[n].texture = pl_tex_create(p->gpu, &tex_params); | ||||||
|     } |     } | ||||||
|  | #ifdef USE_DRM | ||||||
|  |     NoContext; | ||||||
|  | #else | ||||||
|     Unlock_and_NoContext; |     Unlock_and_NoContext; | ||||||
|  | #endif | ||||||
| } | } | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user