mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
basesink: Use gst_pad_set_caps() instead of the manual event fiddling
This commit is contained in:
parent
183cc7e3bf
commit
ec7a0a7cf2
1 changed files with 1 additions and 2 deletions
|
@ -3963,8 +3963,7 @@ gst_base_sink_negotiate_pull (GstBaseSink * basesink)
|
|||
GST_DEBUG_OBJECT (basesink, "fixated to: %" GST_PTR_FORMAT, caps);
|
||||
|
||||
if (gst_caps_is_fixed (caps)) {
|
||||
if (!gst_pad_send_event (GST_BASE_SINK_PAD (basesink),
|
||||
gst_event_new_caps (caps)))
|
||||
if (!gst_pad_set_caps (GST_BASE_SINK_PAD (basesink), caps))
|
||||
goto could_not_set_caps;
|
||||
|
||||
result = TRUE;
|
||||
|
|
Loading…
Reference in a new issue