DeckLinkCaptureDelegate *p_delegate;
es_out_id_t *p_video_es;
es_out_id_t *p_audio_es;
+ bool b_first_frame;
vlc_mutex_t frame_lock;
block_t *p_video_frame; // protected by <frame_lock>
BMDTimeValue stream_time, frame_duration;
videoFrame->GetStreamTime( &stream_time, &frame_duration, CLOCK_FREQ );
+ p_video_frame->i_flags = BLOCK_FLAG_TYPE_I;
+ if( p_sys->b_first_frame )
+ {
+ p_video_frame->i_flags |= BLOCK_FLAG_DISCONTINUITY;
+ p_sys->b_first_frame = false;
+ }
p_video_frame->i_pts = VLC_TS_0 + stream_time;
}
(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 );