[vlc-commits] directx_va: warn something is wrong with the decoder if no input is available

Steve Lhomme git at videolan.org
Fri Feb 5 19:30:06 CET 2016


vlc | branch: master | Steve Lhomme <robUx4 at gmail.com> | Sat Jan 30 09:26:37 2016 +0100| [e8733b218f72deea1b5ec229262ac864e476e203] | committer: Jean-Baptiste Kempf

directx_va: warn something is wrong with the decoder if no input is available

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8733b218f72deea1b5ec229262ac864e476e203
---

 modules/codec/avcodec/directx_va.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 038d878..b8f2325 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -517,6 +517,10 @@ static int FindVideoServiceConversion(vlc_va_t *va, directx_sys_t *dx_sys, const
     int err = dx_sys->pf_get_input_list(va, &p_list);
     if (err != VLC_SUCCESS)
         return err;
+    if (p_list.count == 0) {
+        msg_Warn( va, "No input format found for HWAccel" );
+        return VLC_EGENERIC;
+    }
 
     err = VLC_EGENERIC;
     /* Retreive supported modes from the decoder service */



More information about the vlc-commits mailing list