Commit b955e000 authored by Laurent Aimar's avatar Laurent Aimar

Used es_format_IsSimilar when needed.

parent 50b81b09
......@@ -102,7 +102,7 @@ static int Create( vlc_object_t *p_this )
msg_Err( p_filter, "Unsupported chroma" );
return VLC_EGENERIC;
}
if( memcmp( &p_filter->fmt_in, &p_filter->fmt_out, sizeof(p_filter->fmt_in) ) )
if( !es_format_IsSimilar( &p_filter->fmt_in, &p_filter->fmt_out ) )
{
msg_Err( p_filter, "Input and output format does not match" );
return VLC_EGENERIC;
......
......@@ -134,7 +134,7 @@ static int Open( vlc_object_t *p_this )
filter_sys_t *p_sys;
/* */
if( memcmp( &p_filter->fmt_in, &p_filter->fmt_out, sizeof(p_filter->fmt_in) ) )
if( !es_format_IsSimilar( &p_filter->fmt_in, &p_filter->fmt_out ) )
{
msg_Err( p_filter, "Input and output format does not match" );
return VLC_EGENERIC;
......
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