mirror of
				https://github.com/jojo61/vdr-plugin-softhdcuvid.git
				synced 2025-03-01 10:39:28 +00:00 
			
		
		
		
	again fixed crash with start recording
This commit is contained in:
		
							
								
								
									
										13
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								video.c
									
									
									
									
									
								
							| @@ -1764,12 +1764,13 @@ static void CuvidDestroySurfaces(CuvidDecoder * decoder) | |||||||
| 	glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext); | 	glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext); | ||||||
| 	GlxCheck(); | 	GlxCheck(); | ||||||
|  |  | ||||||
| 	 | 	if (decoder->cuda_ctx) { | ||||||
| 	for (i=0;i<decoder->SurfacesNeeded;i++) { | 		for (i=0;i<decoder->SurfacesNeeded;i++) { | ||||||
| 		for (j=0;j<2;j++) { | 			for (j=0;j<2;j++) { | ||||||
| 			if (decoder->cu_res[i][j]) { | 				if (decoder->cu_res[i][j]) { | ||||||
| 				checkCudaErrors(cuGraphicsUnregisterResource(decoder->cu_res[i][j])); | 					checkCudaErrors(cuGraphicsUnregisterResource(decoder->cu_res[i][j])); | ||||||
| 				decoder->cu_res[i][j] = 0; | 					decoder->cu_res[i][j] = 0; | ||||||
|  | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user