summaryrefslogtreecommitdiff
path: root/gst/vaapi
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-05-27 14:01:48 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-05-27 17:21:11 +0200
commitc12dc19b8b5bde6cf370afd1b012b1cb13220fda (patch)
tree86c89de93d6a561d7622b567235fa16df2d56d71 /gst/vaapi
parent382542c74797b52b4c665c0b66a3f36a68fadd7a (diff)
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.
Diffstat (limited to 'gst/vaapi')
-rw-r--r--gst/vaapi/gstvaapisink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapisink.c b/gst/vaapi/gstvaapisink.c
index d9da5ccb..808739b2 100644
--- a/gst/vaapi/gstvaapisink.c
+++ b/gst/vaapi/gstvaapisink.c
@@ -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;