diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2015-09-27 16:31:45 +0100 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2015-09-27 16:31:45 +0100 |
commit | 730890cab999b96db7c72fb892f68d510f6e0580 (patch) | |
tree | d345542d1d2cc7d2ab46344497a80e7a87a20305 | |
parent | f55011e8330d4c35b5f5039537e2046f66853593 (diff) | |
download | clutter-gst-730890cab999b96db7c72fb892f68d510f6e0580.tar.gz |
video-sink: fix missing resolution info
-rw-r--r-- | 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); |