mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +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_object_unref (oldpool);
|
||||
}
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
activate_failed:
|
||||
|
@ -1262,7 +1262,7 @@ gst_base_transform_setcaps (GstBaseTransform * trans, GstPad * pad,
|
|||
|
||||
if (ret) {
|
||||
/* try to get a pool when needed */
|
||||
gst_base_transform_do_bufferpool (trans, othercaps);
|
||||
ret = gst_base_transform_do_bufferpool (trans, othercaps);
|
||||
}
|
||||
|
||||
done:
|
||||
|
|
Loading…
Reference in a new issue