[clutter-gst/clutter-gst-3.0] video-sink: fix missing resolution info
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst/clutter-gst-3.0] video-sink: fix missing resolution info
- Date: Sun, 27 Sep 2015 15:32:50 +0000 (UTC)
commit 730890cab999b96db7c72fb892f68d510f6e0580
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Sun Sep 27 16:31:45 2015 +0100
video-sink: fix missing resolution info
clutter-gst/clutter-gst-video-sink.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 20da685..714110b 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -2530,6 +2530,8 @@ clutter_gst_video_sink_get_frame (ClutterGstVideoSink *sink)
if (priv->clt_frame == NULL)
{
priv->clt_frame = clutter_gst_frame_new ();
+ clutter_gst_video_resolution_from_video_info (&priv->clt_frame->resolution,
+ &priv->info);
priv->clt_frame->pipeline = cogl_pipeline_new (priv->ctx);
clutter_gst_video_sink_setup_pipeline (sink, priv->clt_frame->pipeline);
clutter_gst_video_sink_attach_frame (sink, priv->clt_frame->pipeline);
@@ -2538,7 +2540,10 @@ clutter_gst_video_sink_get_frame (ClutterGstVideoSink *sink)
else if (priv->balance_dirty)
{
g_boxed_free (CLUTTER_GST_TYPE_FRAME, priv->clt_frame);
+
priv->clt_frame = clutter_gst_frame_new ();
+ clutter_gst_video_resolution_from_video_info (&priv->clt_frame->resolution,
+ &priv->info);
priv->clt_frame->pipeline = cogl_pipeline_new (priv->ctx);
clutter_gst_video_sink_setup_pipeline (sink, priv->clt_frame->pipeline);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]