Original commit message from CVS:
* gst/playback/gstplaybin.c: (remove_sinks):
Only remove visualisation from visbin if there is a visbin (or:
don't throw warnings when closing totem without playing a file).
+2006-09-28 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/playback/gstplaybin.c: (remove_sinks):
+ Only remove visualisation from visbin if there is a visbin (or:
+ don't throw warnings when closing totem without playing a file).
+
2006-09-27 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstbaseaudiosink.c:
2006-09-27 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/audio/gstbaseaudiosink.c:
GST_ELEMENT_CAST (gst_element_get_parent (play_bin->visualisation));
gst_element_set_state (play_bin->visualisation, GST_STATE_NULL);
GST_ELEMENT_CAST (gst_element_get_parent (play_bin->visualisation));
gst_element_set_state (play_bin->visualisation, GST_STATE_NULL);
- gst_bin_remove (GST_BIN_CAST (vis_bin), play_bin->visualisation);
- gst_object_unref (vis_bin);
+ if (vis_bin) {
+ gst_bin_remove (GST_BIN_CAST (vis_bin), play_bin->visualisation);
+ gst_object_unref (vis_bin);
+ }