mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
d3d11videosink: Don't clear prepared buffer on unlock_stop()
That can be called between prepare() and render() which results in unexpected error flow return Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4583>
This commit is contained in:
parent
b05659859a
commit
ebcebe548d
1 changed files with 2 additions and 2 deletions
|
@ -1228,8 +1228,6 @@ gst_d3d11_video_sink_unlock_stop (GstBaseSink * sink)
|
|||
if (self->window)
|
||||
gst_d3d11_window_unlock_stop (self->window);
|
||||
|
||||
gst_clear_buffer (&self->prepared_buffer);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -1442,6 +1440,8 @@ gst_d3d11_video_sink_show_frame (GstVideoSink * sink, GstBuffer * buf)
|
|||
ret = GST_FLOW_ERROR;
|
||||
}
|
||||
|
||||
gst_clear_buffer (&self->prepared_buffer);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue