]> git.sesse.net Git - vlc/commitdiff
Fix a race on b_first_frame.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2010 22:39:32 +0000 (00:39 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2010 22:39:32 +0000 (00:39 +0200)
modules/access/sdi.cpp

index c97084d5bc6cec193628c322d214c1c124a02289..4e8988e075db7204abdcab105c8f61b45e5dce8a 100644 (file)
@@ -270,7 +270,7 @@ static int Open( vlc_object_t *p_this )
 
     vlc_mutex_init( &p_sys->frame_lock );
     vlc_cond_init( &p_sys->has_frame );
-    p_sys->p_video_frame = NULL;
+    p_sys->b_first_frame = true;
 
     IDeckLinkIterator *decklink_iterator = CreateDeckLinkIteratorInstance();
     if( !decklink_iterator )
@@ -597,8 +597,6 @@ static int Open( vlc_object_t *p_this )
              (char*)&audio_fmt.i_codec, audio_fmt.audio.i_rate, audio_fmt.audio.i_bitspersample, audio_fmt.audio.i_channels);
     p_sys->p_audio_es = es_out_Add( p_demux->out, &audio_fmt );
 
-    p_sys->b_first_frame = true;
-
     /* Update default_pts to a suitable value for access */
     var_Create( p_demux, "sdi-caching", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );