summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2009-06-29 15:40:35 +0200
committerDamien Lespiau <damien.lespiau@intel.com>2009-06-29 15:40:35 +0200
commit7342cf377e45a3a2786059b6f5163f5179ca7ab8 (patch)
treefad2f394a3a4627d1f367e69423043da47ad05ee
parentac18739380183ff7212253e73467e49b75e58d91 (diff)
downloadclutter-gst-7342cf377e45a3a2786059b6f5163f5179ca7ab8.tar.gz
[videosink] Use the right unref function for CoglShader
While lightly reviewing the code, I've stumbled upon a try to unref a CoglShader with cogl_program_unref() instead of cogl_shader_unref().
-rw-r--r--clutter-gst/clutter-gst-video-sink.c2
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 674655a..601d08c 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -305,7 +305,7 @@ clutter_gst_video_sink_set_glsl_shader (ClutterGstVideoSink *sink,
if (priv->shader)
{
- cogl_program_unref (priv->shader);
+ cogl_shader_unref (priv->shader);
priv->shader = NULL;
}