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:
9f6bcdd
)
encodebin: minor fix in error handling.
author
Alessandro Decina
<alessandro.d@gmail.com>
Wed, 22 Dec 2010 12:56:12 +0000
(13:56 +0100)
committer
Alessandro Decina
<alessandro.d@gmail.com>
Wed, 22 Dec 2010 12:56:12 +0000
(13:56 +0100)
Don't call gst_bin_remove (bin, <invalid pointer>).
gst/encoding/gstencodebin.c
patch
|
blob
|
history
diff --git
a/gst/encoding/gstencodebin.c
b/gst/encoding/gstencodebin.c
index
002ab16
..
b6e2dc4
100644
(file)
--- a/
gst/encoding/gstencodebin.c
+++ b/
gst/encoding/gstencodebin.c
@@
-1320,7
+1320,7
@@
static gboolean
create_elements_and_pads (GstEncodeBin * ebin)
{
gboolean ret = TRUE;
- GstElement *muxer;
+ GstElement *muxer
= NULL
;
GstPad *muxerpad;
const GList *tmp, *profiles;
GstEncodingProfile *sprof;
@@
-1400,7
+1400,8
@@
no_muxer_ghost_pad:
stream_error:
{
GST_WARNING ("Could not create Streams");
- gst_bin_remove (GST_BIN (ebin), muxer);
+ if (muxer)
+ gst_bin_remove (GST_BIN (ebin), muxer);
ebin->muxer = NULL;
return FALSE;
}