[vlc-devel] commit: Fixed asprint checks in mod demuxer. (Laurent Aimar )
git version control
git at videolan.org
Tue Apr 28 19:02:35 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Apr 28 18:59:01 2009 +0200| [9a96868a06e6e63f1da6f0af45b2fcb95edb8e55] | committer: Laurent Aimar
Fixed asprint checks in mod demuxer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a96868a06e6e63f1da6f0af45b2fcb95edb8e55
---
modules/demux/mod.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mod.c b/modules/demux/mod.c
index 1d0784a..745e267 100644
--- a/modules/demux/mod.c
+++ b/modules/demux/mod.c
@@ -387,13 +387,13 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/* Instruments only in newer MODs - so don't show if 0 */
if( asprintf( &psz_instrument_info, ", %i Instruments",
- i_num_instruments ) )
+ i_num_instruments ) >= 0 )
{
if( asprintf( &psz_module_info,
"%i Channels, %i Patterns\n"
"%i Samples%s\n",
i_num_channels, i_num_patterns, i_num_samples,
- ( i_num_instruments ? psz_instrument_info : "" ) ))
+ ( i_num_instruments ? psz_instrument_info : "" ) ) >= 0 )
{
vlc_meta_AddExtra( p_meta, "Module Information",
psz_module_info );
More information about the vlc-devel
mailing list