]> git.sesse.net Git - vlc/blobdiff - modules/demux/rawdv.c
httplive: Adjust conditions for playlist reloading
[vlc] / modules / demux / rawdv.c
index 043cce43331e2e04f09f6b5f6e89b8045d99db4a..77dc254586388865b7849e462ddbdc20421950ad 100644 (file)
@@ -194,9 +194,6 @@ static int Open( vlc_object_t * p_this )
 
     p_peek += 72;                                  /* skip rest of DIF block */
 
-    /* Set p_input field */
-    p_demux->pf_demux   = Demux;
-    p_demux->pf_control = Control;
     p_demux->p_sys      = p_sys = malloc( sizeof( demux_sys_t ) );
     if( !p_sys )
         return VLC_ENOMEM;
@@ -219,13 +216,6 @@ static int Open( vlc_object_t * p_this )
     p_sys->fmt_video.video.i_width = 720;
     p_sys->fmt_video.video.i_height= dv_header.dsf ? 576 : 480;;
 
-    /* FIXME FIXME */
-#if 0
-    /* necessary because input_SplitBuffer() will only get
-     * INPUT_DEFAULT_BUFSIZE bytes at a time. */
-    p_input->i_bufsize = p_sys->frame_size;
-#endif
-
     p_sys->p_es_video = es_out_Add( p_demux->out, &p_sys->fmt_video );
 
     /* Audio stuff */
@@ -236,6 +226,8 @@ static int Open( vlc_object_t * p_this )
         p_sys->p_es_audio = es_out_Add( p_demux->out, &p_sys->fmt_audio );
     }
 
+    p_demux->pf_demux   = Demux;
+    p_demux->pf_control = Control;
     return VLC_SUCCESS;
 }