[vlc-commits] commit: avdemux: tell avformat that input is stream	(Ilkka Ollakka )
    git at videolan.org 
    git at videolan.org
       
    Thu May 20 12:24:22 CEST 2010
    
    
  
vlc/vlc-1.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu May 20 13:11:30 2010 +0300| [48935a8abb6ed6d44ed046a12af2fab58ba663c8] | committer: Jean-Baptiste Kempf 
avdemux: tell avformat that input is stream
Thisways find_stream_info() doesn't get stuck with some http-streams (like
http://bglive-a.bitgravity.com/twit/live/high ) when trying to seek. Fix #3080
(cherry picked from commit b85d3a07e9a1977416bed98a5e45cb68e30a31e1)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=48935a8abb6ed6d44ed046a12af2fab58ba663c8
---
 modules/demux/avformat/demux.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 23044f1..1c6f159 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -199,6 +199,13 @@ int OpenDemux( vlc_object_t *p_this )
     p_sys->url.prot->next = 0;
     init_put_byte( &p_sys->io, p_sys->io_buffer, p_sys->io_buffer_size,
                    0, &p_sys->url, IORead, NULL, IOSeek );
+    /* Tell avformat that input is stream, so it doesn't get stuck
+       when trying av_find_stream_info() trying to seek all the wrong places
+       init_put_byte defaults io.is_streamed=0, so thats why we set them after it
+       */
+    p_sys->url.is_streamed = 1;
+    p_sys->io.is_streamed = 1;
+
 
     /* Open it */
     if( av_open_input_stream( &p_sys->ic, &p_sys->io, p_demux->psz_path,
    
    
More information about the vlc-commits
mailing list