projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8059ab1
)
basetransform: handle failures
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 22 Jul 2011 17:19:59 +0000
(19:19 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 22 Jul 2011 17:19:59 +0000
(19:19 +0200)
Handle failure to activate the bufferpool.
libs/gst/base/gstbasetransform.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstbasetransform.c
b/libs/gst/base/gstbasetransform.c
index
fd80b67
..
395857d
100644
(file)
--- a/
libs/gst/base/gstbasetransform.c
+++ b/
libs/gst/base/gstbasetransform.c
@@
-747,7
+747,7
@@
gst_base_transform_set_allocation (GstBaseTransform * trans,
gst_buffer_pool_set_active (oldpool, FALSE);
gst_object_unref (oldpool);
}
- return
FALS
E;
+ return
TRU
E;
/* 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: