mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
decklinkvideosrc: Post LATENCY message when the mode changes
Different modes have different framerates, and thus different latencies. We might need to reconfigure the latency of the pipeline.
This commit is contained in:
parent
beede3f27d
commit
4531a341a8
1 changed files with 2 additions and 1 deletions
|
@ -326,13 +326,14 @@ gst_decklink_video_src_create (GstPushSrc * bsrc, GstBuffer ** buffer)
|
|||
caps = gst_decklink_mode_get_caps (self->caps_mode);
|
||||
gst_video_info_from_caps (&self->info, caps);
|
||||
gst_base_src_set_caps (GST_BASE_SRC_CAST (bsrc), caps);
|
||||
gst_element_post_message (GST_ELEMENT_CAST (self),
|
||||
gst_message_new_latency (GST_OBJECT_CAST (self)));
|
||||
gst_caps_unref (caps);
|
||||
}
|
||||
|
||||
f->frame->GetBytes ((gpointer *) & data);
|
||||
data_size = self->info.size;
|
||||
|
||||
|
||||
vf = (VideoFrame *) g_malloc0 (sizeof (VideoFrame));
|
||||
|
||||
*buffer =
|
||||
|
|
Loading…
Reference in a new issue