mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
Make sure VA display is valid when created with an explicit "display" name.
This commit is contained in:
parent
3daf619006
commit
5d44dace53
1 changed files with 4 additions and 1 deletions
|
@ -116,8 +116,11 @@ gst_vaapisink_destroy(GstVaapiSink *sink)
|
|||
static inline gboolean
|
||||
gst_vaapisink_ensure_display(GstVaapiSink *sink)
|
||||
{
|
||||
if (!sink->display)
|
||||
if (!sink->display) {
|
||||
sink->display = gst_vaapi_display_x11_new(sink->display_name);
|
||||
if (!sink->display || !gst_vaapi_display_get_display(sink->display))
|
||||
return NULL;
|
||||
}
|
||||
return sink->display != NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue