From: Ronald S. Bultje Date: Mon, 13 Sep 2004 18:23:49 +0000 (+0000) Subject: gst/playback/gstplaybasebin.c: Handle double disposals, and proper change of URIs. X-Git-Tag: BRANCH-GSTREAMER-0_8-ROOT~639 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8005b541c519cd06f392d87c6d6c5fe7aaa0d7cb;p=platform%2Fupstream%2Fgst-plugins-base.git gst/playback/gstplaybasebin.c: Handle double disposals, and proper change of URIs. Original commit message from CVS: * gst/playback/gstplaybasebin.c: (gst_play_base_bin_dispose), (gst_play_base_bin_set_property): Handle double disposals, and proper change of URIs. --- diff --git a/ChangeLog b/ChangeLog index 0215240..fd89098 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2004-09-13 Ronald S. Bultje + * gst/playback/gstplaybasebin.c: + (gst_play_base_bin_dispose), (gst_play_base_bin_set_property): + Handle double disposals, and proper change of URIs. + +2004-09-13 Ronald S. Bultje + * ext/gnomevfs/Makefile.am: * ext/gnomevfs/gstgnomevfs.c: (plugin_init): * ext/gnomevfs/gstgnomevfssink.c: (gst_gnomevfssink_get_type), diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index 2baadd5..e225bf1 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -186,6 +186,7 @@ gst_play_base_bin_dispose (GObject * object) play_base_bin = GST_PLAY_BASE_BIN (object); g_free (play_base_bin->uri); + play_base_bin->uri = NULL; if (G_OBJECT_CLASS (parent_class)->dispose) { G_OBJECT_CLASS (parent_class)->dispose (object); @@ -415,7 +416,7 @@ gst_play_base_bin_set_property (GObject * object, guint prop_id, g_warning ("cannot set NULL uri"); return; } - if (!play_base_bin->uri || !strcmp (play_base_bin->uri, uri)) { + if (!play_base_bin->uri || strcmp (play_base_bin->uri, uri) != 0) { g_free (play_base_bin->uri); play_base_bin->uri = g_strdup (uri);