mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
display: destroy display on creation failure.
This allows element to detect that the display creation has actually failed. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
8a1dc4978f
commit
e5abbe0440
1 changed files with 2 additions and 1 deletions
|
@ -503,7 +503,8 @@ gst_vaapi_display_constructed(GObject *object)
|
||||||
GObjectClass *parent_class;
|
GObjectClass *parent_class;
|
||||||
|
|
||||||
display->priv->create_display = display->priv->display == NULL;
|
display->priv->create_display = display->priv->display == NULL;
|
||||||
gst_vaapi_display_create(display);
|
if (!gst_vaapi_display_create(display))
|
||||||
|
gst_vaapi_display_destroy(display);
|
||||||
|
|
||||||
parent_class = G_OBJECT_CLASS(gst_vaapi_display_parent_class);
|
parent_class = G_OBJECT_CLASS(gst_vaapi_display_parent_class);
|
||||||
if (parent_class->constructed)
|
if (parent_class->constructed)
|
||||||
|
|
Loading…
Reference in a new issue