summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/gconf/gconf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/gconf/gconf.c b/ext/gconf/gconf.c
index 81c1f550..2bda0669 100644
--- a/ext/gconf/gconf.c
+++ b/ext/gconf/gconf.c
@@ -173,12 +173,13 @@ GstElement *
gst_gconf_render_bin_with_default (const gchar * bin,
const gchar * default_sink)
{
- GstElement *ret;
+ GstElement *ret = NULL;
GError *err = NULL;
- ret = gst_parse_bin_from_description (bin, TRUE, &err);
+ if (bin != NULL)
+ ret = gst_parse_bin_from_description (bin, TRUE, &err);
- if (err) {
+ if (ret == NULL || err != NULL) {
ret = gst_element_factory_make (default_sink, NULL);
if (!ret)