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:
parent
a483e90955
commit
98482c3a0e
@ -5547,6 +5547,12 @@ gst_play_bin_change_state (GstElement * element, GstStateChange transition)
|
|||||||
l = l->next;
|
l = l->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (playbin->source) {
|
||||||
|
gst_object_unref (playbin->source);
|
||||||
|
playbin->source = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (playbin);
|
GST_OBJECT_UNLOCK (playbin);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user