summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-10-27 19:23:41 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2011-10-28 11:31:26 +0100
commitddbb091b4a4d4cce0f3b324819af975a246faf4d (patch)
tree07b1c5fe9099f70c040ade7978669b7964beaa59 /tests
parent9f9ad6266c9e7cd870c86c8d5a346f9912cdad42 (diff)
sink: Make the sink hold a weak reference to the ClutterTexture
The sink does not need to hold a reference to the Texture, it better to leave the life cycle of the ClutterTexture entirely to Clutter. If the texture disapears when the sink is still live and pushing buffers to it, you will get warnings not nothing dramatic. It's your responsibility to ensure the GStreamer pipeline has been stopped when removing/destroying the texture.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-video-texture-new-unref-loop.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test-video-texture-new-unref-loop.c b/tests/test-video-texture-new-unref-loop.c
index 3ff89e5..10ba16e 100644
--- a/tests/test-video-texture-new-unref-loop.c
+++ b/tests/test-video-texture-new-unref-loop.c
@@ -44,11 +44,8 @@ main (int argc, char *argv[])
{
g_debug("VideoTexure #%d", i);
vtexture = clutter_gst_video_texture_new();
- if (vtexture == NULL)
- g_error("failed to create VideoTexture");
g_object_ref_sink (vtexture);
g_object_unref (vtexture);
- g_object_unref (vtexture);
}
return EXIT_SUCCESS;