mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
decklinksrc: send caps event before segment
This commit is contained in:
parent
3a84875294
commit
fb9fbc8fba
1 changed files with 6 additions and 6 deletions
|
@ -709,12 +709,6 @@ gst_decklink_src_send_initial_events (GstDecklinkSrc * src)
|
|||
gst_event_set_group_id (event, group_id);
|
||||
gst_pad_push_event (src->videosrcpad, event);
|
||||
|
||||
/* segment */
|
||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||
event = gst_event_new_segment (&segment);
|
||||
gst_pad_push_event (src->videosrcpad, gst_event_ref (event));
|
||||
gst_pad_push_event (src->audiosrcpad, event);
|
||||
|
||||
/* caps */
|
||||
gst_pad_push_event (src->audiosrcpad,
|
||||
gst_event_new_caps (gst_caps_new_simple ("audio/x-raw",
|
||||
|
@ -724,6 +718,12 @@ gst_decklink_src_send_initial_events (GstDecklinkSrc * src)
|
|||
|
||||
gst_pad_push_event (src->videosrcpad,
|
||||
gst_event_new_caps (gst_decklink_mode_get_caps (src->mode)));
|
||||
|
||||
/* segment */
|
||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||
event = gst_event_new_segment (&segment);
|
||||
gst_pad_push_event (src->videosrcpad, gst_event_ref (event));
|
||||
gst_pad_push_event (src->audiosrcpad, event);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue