playbin: Don't print a warning when setting a sink to NULL

https://bugzilla.gnome.org/show_bug.cgi?id=704194
This commit is contained in:
Sebastian Dröge 2013-07-15 09:10:30 +02:00
parent c6f8220920
commit 10c91ea5b5

View file

@ -2166,7 +2166,7 @@ gst_play_bin_set_sink (GstPlayBin * playbin, GstPlaySinkType type,
if (*elem)
gst_object_unref (*elem);
*elem = gst_object_ref (sink);
*elem = sink ? gst_object_ref (sink) : NULL;
}
static void