mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +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
|
static inline gboolean
|
||||||
gst_vaapisink_ensure_display(GstVaapiSink *sink)
|
gst_vaapisink_ensure_display(GstVaapiSink *sink)
|
||||||
{
|
{
|
||||||
if (!sink->display)
|
if (!sink->display) {
|
||||||
sink->display = gst_vaapi_display_x11_new(sink->display_name);
|
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;
|
return sink->display != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue