Commit 3c0a8a50 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

zvbi: Simplify fmt_out initialization

parent 8bc91ee4
......@@ -276,11 +276,8 @@ static int Open( vlc_object_t *p_this )
/* Listen for keys */
var_AddCallback( p_dec->obj.libvlc, "key-pressed", EventKey, p_dec );
es_format_Init( &p_dec->fmt_out, SPU_ES, VLC_CODEC_SPU );
if( p_sys->b_text )
p_dec->fmt_out.i_codec = VLC_CODEC_TEXT;
else
p_dec->fmt_out.i_codec = VLC_CODEC_RGBA;
es_format_Init( &p_dec->fmt_out, SPU_ES,
p_sys->b_text ? VLC_CODEC_TEXT : VLC_CODEC_RGBA );
p_dec->pf_decode = Decode;
return VLC_SUCCESS;
......
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