Commit 0c3733c6 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

gst/playback/gstplaybin.c: Only remove visualisation from visbin if there is a...

gst/playback/gstplaybin.c: Only remove visualisation from visbin if there is a visbin (or: don't throw warnings when ...

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).
parent 1980f167
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> 2006-09-27 Wim Taymans <wim@fluendo.com>
   
* gst-libs/gst/audio/gstbaseaudiosink.c: * gst-libs/gst/audio/gstbaseaudiosink.c:
...@@ -1311,9 +1311,11 @@ remove_sinks (GstPlayBin * play_bin) ...@@ -1311,9 +1311,11 @@ remove_sinks (GstPlayBin * play_bin)
GST_ELEMENT_CAST (gst_element_get_parent (play_bin->visualisation)); GST_ELEMENT_CAST (gst_element_get_parent (play_bin->visualisation));
gst_element_set_state (play_bin->visualisation, GST_STATE_NULL); 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);
}
} }
if (play_bin->frame) { if (play_bin->frame) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment