[vlc-devel] commit: Verbosely report EOF ( Rafaël Carré )

git version control git at videolan.org
Mon Mar 31 15:25:19 CEST 2008


vlc | branch: 0.8.6-bugfix | Rafaël Carré <funman at videolan.org> | Mon Mar 31 15:25:09 2008 +0200| [fad23089552a4332087204d1006fa4dbe6c3522b]

Verbosely report EOF
(cherry picked from commit d902372231370939c6d52137c9d4f61a928d84a4)

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

 modules/codec/ffmpeg/demux.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/ffmpeg/demux.c b/modules/codec/ffmpeg/demux.c
index 9b18a23..b40fa97 100644
--- a/modules/codec/ffmpeg/demux.c
+++ b/modules/codec/ffmpeg/demux.c
@@ -494,7 +494,10 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
         if( i_absolute > i_size )
             i_absolute = i_size;
         if( stream_Tell( p_demux->s ) >= i_size )
+        {
+            msg_Err( p_demux, "Seeking too far : EOF?" );
             return -1;
+        }
     }
 
     if( stream_Seek( p_demux->s, i_absolute ) )




More information about the vlc-devel mailing list