gstreamer: examples: fix bogus g_object_unref in helloworld example

Tim Müller tpm at kemper.freedesktop.org
Sun Sep 25 08:13:09 PDT 2011


Module: gstreamer
Branch: master
Commit: 51764c3f44a917cff89dd4df0ed4010b35c29fe3
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=51764c3f44a917cff89dd4df0ed4010b35c29fe3

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Sun Sep 25 16:10:53 2011 +0100

examples: fix bogus g_object_unref in helloworld example

GMainLoop is not a GObject.

https://bugzilla.gnome.org/show_bug.cgi?id=424143

---

 tests/examples/helloworld/helloworld.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/examples/helloworld/helloworld.c b/tests/examples/helloworld/helloworld.c
index 073fb03..a659f5b 100644
--- a/tests/examples/helloworld/helloworld.c
+++ b/tests/examples/helloworld/helloworld.c
@@ -74,7 +74,7 @@ main (gint argc, gchar * argv[])
   /* cleanup */
   gst_element_set_state (playbin, GST_STATE_NULL);
   g_object_unref (playbin);
-  g_object_unref (loop);
+  g_main_loop_unref (loop);
 
   return 0;
 }



More information about the gstreamer-commits mailing list