X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fmpeg_system%2Fmpeg_ps.c;h=b9567719ae654deeebf00ceb00b27611ef0bb136;hb=d4f18c4eadb23de73e7ae1d1e2e899cbbfbef567;hp=37fa5f0152daa94586adaafd4e1e38ba7342e87c;hpb=aaee289a1ea035520cb85cf25e7ba5c43ebc80b3;p=vlc diff --git a/plugins/mpeg_system/mpeg_ps.c b/plugins/mpeg_system/mpeg_ps.c index 37fa5f0152..b9567719ae 100644 --- a/plugins/mpeg_system/mpeg_ps.c +++ b/plugins/mpeg_system/mpeg_ps.c @@ -2,7 +2,7 @@ * mpeg_ps.c : Program Stream input module for vlc ***************************************************************************** * Copyright (C) 2000-2001 VideoLAN - * $Id: mpeg_ps.c,v 1.7 2002/03/15 17:17:35 sam Exp $ + * $Id: mpeg_ps.c,v 1.8 2002/03/18 19:14:52 sam Exp $ * * Authors: Christophe Massiot * @@ -107,10 +107,10 @@ static int PSInit( input_thread_t * p_input ) if( *p_peek || *(p_peek + 1) || *(p_peek + 2) != 1 ) { - if( *p_input->psz_demux && strncmp( p_input->psz_demux, "ps", 3 ) ) + if( *p_input->psz_demux && !strncmp( p_input->psz_demux, "ps", 3 ) ) { /* User forced */ - intf_ErrMsg( "input error: this doesn't seem like an MPEG stream, continuing" ); + intf_ErrMsg( "input error: this doesn't look like an MPEG PS stream, continuing" ); } else { @@ -120,7 +120,7 @@ static int PSInit( input_thread_t * p_input ) } else if( *(p_peek + 3) <= 0xb9 ) { - if( *p_input->psz_demux && strncmp( p_input->psz_demux, "ps", 3 ) ) + if( *p_input->psz_demux && !strncmp( p_input->psz_demux, "ps", 3 ) ) { /* User forced */ intf_ErrMsg( "input error: this seems to be an elementary stream (ES plug-in ?),");