vaapisink: ensure VA display in GstBaseSink::start() hook.

This ensures a VA display is ready by the time upstream elements request
for it.
This commit is contained in:
Gwenole Beauchesne 2012-01-11 14:11:30 +01:00
parent c432e82e44
commit 0385750fa7

View file

@ -415,7 +415,9 @@ gst_vaapisink_ensure_window_xid(GstVaapiSink *sink, guintptr window_id)
static gboolean
gst_vaapisink_start(GstBaseSink *base_sink)
{
return TRUE;
GstVaapiSink * const sink = GST_VAAPISINK(base_sink);
return gst_vaapi_ensure_display(sink, &sink->display);
}
static gboolean