From ddbb091b4a4d4cce0f3b324819af975a246faf4d Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 27 Oct 2011 19:23:41 +0100 Subject: 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. --- tests/test-video-texture-new-unref-loop.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests') 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; -- cgit v1.2.1