Commit e8733b21 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

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

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 41129b46
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment