-gst-vaapi NEWS -- summary of changes. 2012-04-02
+gst-vaapi NEWS -- summary of changes. 2012-04-DD
Copyright (C) 2010-2011 Splitted-Desktop Systems
Copyright (C) 2011-2012 Intel Corporation
Copyright (C) 2011 Collabora
+Version 0.3.7 - DD.Apr.2012
+* Recalculate render rect only if caps are negotiated (Holger Kaelberer)
+
Version 0.3.6 - 02.Apr.2012
* Add support for decoding MPEG-2 interlaced streams
* Add support for interlaced streams with FFmpeg decoders (Holger Kaelberer)
g_object_unref(sink->display);
sink->display = NULL;
}
+
+ gst_caps_replace(&sink->caps, NULL);
}
/* Checks whether a ConfigureNotify event is in the queue */
guint num, den, display_par_n, display_par_d;
gboolean success;
+ /* Return success if caps are not set yet */
+ if (!sink->caps)
+ return TRUE;
+
GST_DEBUG("ensure render rect within %ux%u bounds", width, height);
gst_vaapi_display_get_pixel_aspect_ratio(
sink->video_par_d = video_par_d;
GST_DEBUG("video pixel-aspect-ratio %d/%d", video_par_n, video_par_d);
+ gst_caps_replace(&sink->caps, caps);
+
if (!gst_vaapi_ensure_display(sink, &sink->display))
return FALSE;
static void
gst_vaapisink_init(GstVaapiSink *sink, GstVaapiSinkClass *klass)
{
+ sink->caps = NULL;
sink->display = NULL;
sink->window = NULL;
sink->window_width = 0;