mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
basecamerasrc: Make construct_pipeline optional
Construct pipeline should be optional. Subclasses that don't have internal elements don't need it.
This commit is contained in:
parent
ba2368d0bc
commit
80ff930012
1 changed files with 5 additions and 5 deletions
|
@ -390,11 +390,11 @@ construct_pipeline (GstBaseCameraSrc * self)
|
||||||
{
|
{
|
||||||
GstBaseCameraSrcClass *bclass = GST_BASE_CAMERA_SRC_GET_CLASS (self);
|
GstBaseCameraSrcClass *bclass = GST_BASE_CAMERA_SRC_GET_CLASS (self);
|
||||||
|
|
||||||
g_return_val_if_fail (bclass->construct_pipeline, FALSE);
|
if (bclass->construct_pipeline) {
|
||||||
|
if (!bclass->construct_pipeline (self)) {
|
||||||
if (!bclass->construct_pipeline (self)) {
|
GST_ERROR_OBJECT (self, "pipeline construction failed");
|
||||||
GST_ERROR_OBJECT (self, "pipeline construction failed");
|
return FALSE;
|
||||||
return FALSE;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue