mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 18:52:07 +00:00
basetransform: handle failures
Handle failure to activate the bufferpool.
This commit is contained in:
parent
8059ab109a
commit
5dde10f0e4
1 changed files with 2 additions and 2 deletions
|
@ -747,7 +747,7 @@ gst_base_transform_set_allocation (GstBaseTransform * trans,
|
||||||
gst_buffer_pool_set_active (oldpool, FALSE);
|
gst_buffer_pool_set_active (oldpool, FALSE);
|
||||||
gst_object_unref (oldpool);
|
gst_object_unref (oldpool);
|
||||||
}
|
}
|
||||||
return FALSE;
|
return TRUE;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
activate_failed:
|
activate_failed:
|
||||||
|
@ -1262,7 +1262,7 @@ gst_base_transform_setcaps (GstBaseTransform * trans, GstPad * pad,
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
/* try to get a pool when needed */
|
/* try to get a pool when needed */
|
||||||
gst_base_transform_do_bufferpool (trans, othercaps);
|
ret = gst_base_transform_do_bufferpool (trans, othercaps);
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Reference in a new issue