mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-15 18:58:45 +00:00
basesrc: return result of _set_caps()
This commit is contained in:
parent
989d9861e3
commit
76d9349956
|
@ -2560,15 +2560,15 @@ gst_base_src_start (GstBaseSrc * basesrc)
|
||||||
if (!(caps = gst_type_find_helper (basesrc->srcpad, size)))
|
if (!(caps = gst_type_find_helper (basesrc->srcpad, size)))
|
||||||
goto typefind_failed;
|
goto typefind_failed;
|
||||||
|
|
||||||
gst_pad_set_caps (basesrc->srcpad, caps);
|
result = gst_pad_set_caps (basesrc->srcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
} else {
|
} else {
|
||||||
/* use class or default negotiate function */
|
/* use class or default negotiate function */
|
||||||
if (!gst_base_src_negotiate (basesrc))
|
if (!(result = gst_base_src_negotiate (basesrc)))
|
||||||
goto could_not_negotiate;
|
goto could_not_negotiate;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return result;
|
||||||
|
|
||||||
/* ERROR */
|
/* ERROR */
|
||||||
could_not_start:
|
could_not_start:
|
||||||
|
|
Loading…
Reference in a new issue