Commit f7b2327b authored by Antoine Cellerier's avatar Antoine Cellerier

Don't print (null) when we don't have a filter name.

parent e03d215f
...@@ -170,13 +170,16 @@ static filter_t *filter_chain_AppendFilterInternal( filter_chain_t *p_chain, ...@@ -170,13 +170,16 @@ static filter_t *filter_chain_AppendFilterInternal( filter_chain_t *p_chain,
vlc_array_append( &p_chain->filters, p_filter ); vlc_array_append( &p_chain->filters, p_filter );
msg_Dbg( p_chain->p_this, "Filter '%s' (%p) appended to chain", msg_Dbg( p_chain->p_this, "Filter '%s' (%p) appended to chain",
psz_name, p_filter ); psz_name?:p_filter->psz_object_name, p_filter );
return p_filter; return p_filter;
error: error:
msg_Err( p_chain->p_this, "Failed to create video filter '%s'", if( psz_name )
psz_name ); msg_Err( p_chain->p_this, "Failed to create video filter '%s'",
psz_name );
else
msg_Err( p_chain->p_this, "Failed to create video filter" );
if( p_filter->p_module ) module_Unneed( p_filter, if( p_filter->p_module ) module_Unneed( p_filter,
p_filter->p_module ); p_filter->p_module );
es_format_Clean( &p_filter->fmt_in ); es_format_Clean( &p_filter->fmt_in );
......
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