gst-launch: Remove unref that should not be there
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 11 Jun 2013 08:25:02 +0000 (10:25 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 11 Jun 2013 08:25:02 +0000 (10:25 +0200)
We keep a reference to the context around all the time.

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

tools/gst-launch.c

index d43a30e..61a17a4 100644 (file)
@@ -922,7 +922,6 @@ bus_sync_handler (GstBus * bus, GstMessage * message, gpointer data)
         s1 = gst_context_get_structure (context_new);
         s2 = gst_context_writable_structure (context);
         gst_structure_foreach (s1, merge_structures, s2);
-        gst_context_unref (context);
       } else {
         /* Copy over the context */
         gst_context_replace (&context, context_new);