diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2010-01-16 00:47:20 +0000 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2010-02-12 20:09:43 +0000 |
commit | d69a32ae83a780f79fb850ef307b8d58d4c07afd (patch) | |
tree | 08f427a6014701e87b9d86742f00387f215369ca | |
parent | 599c02fbe2da42f3c1fe133cf61ac3d4c2f0887d (diff) | |
download | clutter-gst-d69a32ae83a780f79fb850ef307b8d58d4c07afd.tar.gz |
Don't copy GstCaps in get_caps() but just ref them
No need to copy the caps when some upstream element is asking what we
can do. Reffing them is enough as the caps are built at object
construction time and and kept until destruction time.
-rw-r--r-- | 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 246f01d..592109b 100644 --- a/clutter-gst/clutter-gst-video-sink.c +++ b/clutter-gst/clutter-gst-video-sink.c @@ -1064,7 +1064,7 @@ clutter_gst_video_sink_get_caps (GstBaseSink *bsink) ClutterGstVideoSink *sink; sink = CLUTTER_GST_VIDEO_SINK (bsink); - return gst_caps_copy (sink->priv->caps); + return gst_caps_ref (sink->priv->caps); } static gboolean |