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