mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
basesrc: Don't ignore the return value of gst_pad_set_caps() and call it after the vfunc
This commit is contained in:
parent
ec7a0a7cf2
commit
aee0d2a2b3
1 changed files with 2 additions and 1 deletions
|
@ -866,10 +866,11 @@ gst_base_src_set_caps (GstBaseSrc * src, GstCaps * caps)
|
|||
bclass = GST_BASE_SRC_GET_CLASS (src);
|
||||
|
||||
gst_base_src_send_stream_start (src);
|
||||
gst_pad_push_event (src->srcpad, gst_event_new_caps (caps));
|
||||
|
||||
if (bclass->set_caps)
|
||||
res = bclass->set_caps (src, caps);
|
||||
if (res)
|
||||
res = gst_pad_set_caps (src->srcpad, caps);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue