[vlc-devel] commit: Don't print (null) when we don't have a filter name. ( Antoine Cellerier )
git version control
git at videolan.org
Sun Jun 22 21:28:19 CEST 2008
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Sun Jun 22 21:30:39 2008 +0200| [f7b2327bfa30ea47cefc7bfa5b0edc15ae8c66fd]
Don't print (null) when we don't have a filter name.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7b2327bfa30ea47cefc7bfa5b0edc15ae8c66fd
---
src/misc/filter_chain.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index ec73a8a..7c20453 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -170,13 +170,16 @@ static filter_t *filter_chain_AppendFilterInternal( filter_chain_t *p_chain,
vlc_array_append( &p_chain->filters, p_filter );
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;
error:
- msg_Err( p_chain->p_this, "Failed to create video filter '%s'",
- psz_name );
+ if( 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,
p_filter->p_module );
es_format_Clean( &p_filter->fmt_in );
More information about the vlc-devel
mailing list