[vlc-devel] commit: Do not fail on av_find_stream_info error (avformat). ( Laurent Aimar )

git version control git at videolan.org
Sat Feb 20 14:13:07 CET 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 20 13:00:14 2010 +0100| [aad46ccd35a9579a487c8ae85d3edf5383ffbdbd] | committer: Laurent Aimar 

Do not fail on av_find_stream_info error (avformat).

It is not fatal.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aad46ccd35a9579a487c8ae85d3edf5383ffbdbd
---

 modules/demux/avformat/demux.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 94d5a89..572eedc 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -209,9 +209,7 @@ int OpenDemux( vlc_object_t *p_this )
     if( av_find_stream_info( p_sys->ic ) < 0 )
     {
         vlc_avcodec_unlock();
-        msg_Err( p_demux, "av_find_stream_info failed" );
-        CloseDemux( p_this );
-        return VLC_EGENERIC;
+        msg_Warn( p_demux, "av_find_stream_info failed" );
     }
     vlc_avcodec_unlock();
 




More information about the vlc-devel mailing list