vlc | branch: master | Steve Lhomme <[email protected]> | 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 <[email protected]> > 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 */ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
