mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue