mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
vaapisink: fix one-time initialization when display property is set.
Fix gst_vaapisink_ensure_display() to perform one-time initialization tasks even if the `display' property was explicitly set.
This commit is contained in:
parent
382542c747
commit
c12dc19b8b
1 changed files with 2 additions and 1 deletions
|
@ -329,12 +329,13 @@ gst_vaapisink_ensure_display(GstVaapiSink *sink)
|
|||
{
|
||||
GstVaapiDisplayType display_type;
|
||||
GstVaapiRenderMode render_mode;
|
||||
const gboolean had_display = sink->display != NULL;
|
||||
|
||||
if (!gst_vaapi_ensure_display(sink, sink->display_type, &sink->display))
|
||||
return FALSE;
|
||||
|
||||
display_type = gst_vaapi_display_get_display_type(sink->display);
|
||||
if (display_type != sink->display_type) {
|
||||
if (display_type != sink->display_type || (!had_display && sink->display)) {
|
||||
GST_INFO("created %s %p", get_display_type_name(display_type),
|
||||
sink->display);
|
||||
sink->display_type = display_type;
|
||||
|
|
Loading…
Reference in a new issue