mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-07 19:22:15 +00:00
ajasrc: Set output buffer duration based on the framerate as an estimate
This commit is contained in:
parent
8075fe577c
commit
fa5385bc8e
1 changed files with 4 additions and 0 deletions
|
@ -1423,7 +1423,11 @@ restart:
|
|||
now_gst = 0;
|
||||
|
||||
GST_BUFFER_PTS(video_buffer) = now_gst;
|
||||
GST_BUFFER_DURATION(video_buffer) = gst_util_uint64_scale(
|
||||
GST_SECOND, self->configured_info.fps_d, self->configured_info.fps_n);
|
||||
GST_BUFFER_PTS(audio_buffer) = now_gst;
|
||||
GST_BUFFER_DURATION(audio_buffer) = gst_util_uint64_scale(
|
||||
GST_SECOND, self->configured_info.fps_d, self->configured_info.fps_n);
|
||||
|
||||
// TODO: Drift detection and compensation
|
||||
|
||||
|
|
Loading…
Reference in a new issue