mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
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.
This commit is contained in:
parent
f13c8b6576
commit
b603027de7
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-02-11 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* 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.
|
||||
|
||||
2008-02-10 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst/audiofx/audioamplify.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)
|
||||
|
|
Loading…
Reference in a new issue