summaryrefslogtreecommitdiffstats
path: root/ext/gconf
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-02-11 13:48:03 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-02-11 13:48:03 +0000
commitb603027de797e7e2b5afaf01afd369db2178ce7f (patch)
tree286d910de02b687fc2f1d3ca0aa8a39a17408ec1 /ext/gconf
parentf13c8b6576edd83e99fbec2c7effb75df1d545e4 (diff)
ext/gconf/gconf.c: Use and unset the GError when pipeline creation fails instead of simply leaking it. Fixes bug #515...
Original commit message from CVS: * ext/gconf/gconf.c: (gst_gconf_render_bin_with_default): Use and unset the GError when pipeline creation fails instead of simply leaking it. Fixes bug #515704.
Diffstat (limited to 'ext/gconf')
-rw-r--r--ext/gconf/gconf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/gconf/gconf.c b/ext/gconf/gconf.c
index 2bda0669..e7214e2d 100644
--- a/ext/gconf/gconf.c
+++ b/ext/gconf/gconf.c
@@ -180,6 +180,14 @@ gst_gconf_render_bin_with_default (const gchar * bin,
ret = gst_parse_bin_from_description (bin, TRUE, &err);
if (ret == NULL || err != NULL) {
+ if (err) {
+ GST_DEBUG ("Could not create audio sink from GConf settings: %s",
+ err->message);
+ g_error_free (err);
+ } else {
+ GST_DEBUG ("Could not create audio sink from GConf settings");
+ }
+
ret = gst_element_factory_make (default_sink, NULL);
if (!ret)