mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
waylandsink: fix assertion failure when stopping immediately after starting, without displaying anything
This was triggered in scenarios like filesrc location=nonexistent_file ! decodebin ! waylandsink
This commit is contained in:
parent
a543aef5ee
commit
882e1dd240
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ gst_wayland_sink_change_state (GstElement * element, GstStateChange transition)
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
if (gst_wl_window_is_toplevel (sink->window)) {
|
if (sink->window && gst_wl_window_is_toplevel (sink->window)) {
|
||||||
gst_buffer_replace (&sink->last_buffer, NULL);
|
gst_buffer_replace (&sink->last_buffer, NULL);
|
||||||
g_clear_object (&sink->window);
|
g_clear_object (&sink->window);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue