mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
ext/gconf/gconf.c: Handle a NULL gconf key gracefully by rendering the default element.
Original commit message from CVS: * ext/gconf/gconf.c: (gst_gconf_render_bin_with_default): Handle a NULL gconf key gracefully by rendering the default element.
This commit is contained in:
parent
e98177afae
commit
1364d7b0b1
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-07-27 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* ext/gconf/gconf.c: (gst_gconf_render_bin_with_default):
|
||||
Handle a NULL gconf key gracefully by rendering the default element.
|
||||
|
||||
2007-07-27 Wim Taymans <wim.taymans@gmail.com>
|
||||
|
||||
* gst/rtsp/gstrtspext.h:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue