changeset 25472:ace1b77375bd

Set is_streamed correctly, should make network playback work more reliably.
author reimar
date Sat, 22 Dec 2007 16:23:42 +0000
parents 5075d5ff1da8
children 6ade61b852eb
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sat Dec 22 16:22:54 2007 +0000
+++ b/libmpdemux/demux_lavf.c	Sat Dec 22 16:23:42 2007 +0000
@@ -449,6 +449,7 @@
     
     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");