[clutter-gst] video-sink: only bind required number of layers
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] video-sink: only bind required number of layers
- Date: Thu, 26 Jun 2014 21:29:47 +0000 (UTC)
commit 42f991887665ebe1507bfdace52786ea62d7122e
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Thu Jun 26 21:55:24 2014 +0100
video-sink: only bind required number of layers
clutter-gst/clutter-gst-video-sink.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 07d360d..ed9be81 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -694,7 +694,7 @@ clutter_gst_video_sink_attach_frame (ClutterGstVideoSink *sink,
ClutterGstVideoSinkPrivate *priv = sink->priv;
guint i;
- for (i = 0; i < G_N_ELEMENTS (priv->frame); i++)
+ for (i = 0; i < priv->renderer->n_layers; i++)
if (priv->frame[i] != NULL)
cogl_pipeline_set_layer_texture (pln, i + priv->video_start,
priv->frame[i]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]