Example #1
0
static void
on_destroy (ClutterActor *actor, gpointer data)
{
  GFreenectDevice *device = GFREENECT_DEVICE (data);
  gfreenect_device_stop_depth_stream (device, NULL);
  gfreenect_device_stop_video_stream (device, NULL);
  clutter_main_quit ();
}
Example #2
0
static void
on_destroy (ClutterActor *actor, gpointer data)
{
  ClutterContent *content;
  GFreenectDevice *device = GFREENECT_DEVICE (data);

  content = clutter_actor_get_content (depth_tex);
  if (content == depth_canvas)
    g_object_unref (depth_image);
  else
    g_object_unref (depth_canvas);

  gfreenect_device_stop_depth_stream (device, NULL);
  gfreenect_device_stop_video_stream (device, NULL);
  clutter_main_quit ();
}