mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
decklink: Fix latency values for sources
This commit is contained in:
parent
3a6c2b6b67
commit
e7c6eb6326
2 changed files with 2 additions and 2 deletions
|
@ -484,7 +484,7 @@ gst_decklink_audio_src_query (GstBaseSrc * bsrc, GstQuery * query)
|
|||
GstClockTime min, max;
|
||||
|
||||
min =
|
||||
gst_util_uint64_scale_ceil (GST_MSECOND, self->input->mode->fps_d,
|
||||
gst_util_uint64_scale_ceil (GST_SECOND, self->input->mode->fps_d,
|
||||
self->input->mode->fps_n);
|
||||
max = self->buffer_size * min;
|
||||
|
||||
|
|
|
@ -347,7 +347,7 @@ gst_decklink_video_src_query (GstBaseSrc * bsrc, GstQuery * query)
|
|||
mode = gst_decklink_get_mode (self->mode);
|
||||
|
||||
min =
|
||||
gst_util_uint64_scale_ceil (GST_MSECOND, mode->fps_d, mode->fps_n);
|
||||
gst_util_uint64_scale_ceil (GST_SECOND, mode->fps_d, mode->fps_n);
|
||||
max = self->buffer_size * min;
|
||||
|
||||
gst_query_set_latency (query, TRUE, min, max);
|
||||
|
|
Loading…
Reference in a new issue