diff options
author | Johns <johns98@gmx.net> | 2014-10-13 15:16:05 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2014-10-13 15:16:05 +0200 |
commit | ac1d5250c86dc8b4bef59cc5396411788c4b04b5 (patch) | |
tree | 8096c074954f0affeea85046293a89637f6c059e | |
parent | c2556eb90a83185e32f801163281eb8f30ea1b40 (diff) | |
download | vdr-plugin-softhddevice-ac1d5250c86dc8b4bef59cc5396411788c4b04b5.tar.gz vdr-plugin-softhddevice-ac1d5250c86dc8b4bef59cc5396411788c4b04b5.tar.bz2 |
Fix crash with VA-API vdpau backend.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | video.c | 18 |
2 files changed, 15 insertions, 8 deletions
@@ -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 @@ -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; + } } } } |