playbin: Drop reference to any source element in NULL state

Drop the reference instead of waiting for either finalize(), or
for a new source when reused. Everyone else already forgot about
the old source.
This commit is contained in:
Jan Schmidt 2014-04-04 02:14:50 +11:00
parent a483e90955
commit 98482c3a0e

View file

@ -5547,6 +5547,12 @@ gst_play_bin_change_state (GstElement * element, GstStateChange transition)
l = l->next;
}
}
if (playbin->source) {
gst_object_unref (playbin->source);
playbin->source = NULL;
}
GST_OBJECT_UNLOCK (playbin);
break;
}