[MPlayer-cvslog] r25500 - trunk/libmpdemux/demux_lavf.c

reimar subversion at mplayerhq.hu
Sat Dec 22 17:23:42 CET 2007


Author: reimar
Date: Sat Dec 22 17:23:42 2007
New Revision: 25500

Log:
Set is_streamed correctly, should make network playback work more reliably.


Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	(original)
+++ trunk/libmpdemux/demux_lavf.c	Sat Dec 22 17:23:42 2007
@@ -449,6 +449,7 @@ static demuxer_t* demux_open_lavf(demuxe
     
     priv->pb = alloc_put_byte(priv->buffer, BIO_BUFFER_SIZE, 0,
                               demuxer->stream, mp_read, NULL, mp_seek);
+    priv->pb->is_streamed = !demuxer->stream->end_pos;
     
     if(av_open_input_stream(&avfc, priv->pb, mp_filename, priv->avif, &ap)<0){
         mp_msg(MSGT_HEADER,MSGL_ERR,"LAVF_header: av_open_input_stream() failed\n");



More information about the MPlayer-cvslog mailing list