1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-06 06:08:23 +00:00

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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25500 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-12-22 16:23:42 +00:00
parent de4908b644
commit 37b1d73ae3

View File

@ -449,6 +449,7 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){
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");