[gnac] Used gst_object_unref instead of g_object_unref



commit 8431f3bf484a9983cbee9d21a24b3fef7e01766d
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date:   Tue Jan 31 19:45:33 2012 +0000

    Used gst_object_unref instead of g_object_unref

 libgnac/libgnac-gst-utils.c |    4 ++--
 libgnac/libgnac-gst.c       |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgnac/libgnac-gst-utils.c b/libgnac/libgnac-gst-utils.c
index 205a348..25e2fb7 100644
--- a/libgnac/libgnac-gst-utils.c
+++ b/libgnac/libgnac-gst-utils.c
@@ -155,7 +155,7 @@ libgnac_gstu_get_compatible_pad(GstElement  *element,
     libgnac_debug("%s pad %s is already linked", type, sink_pad_name);
     g_free(pad_name);
     g_free(sink_pad_name);
-    g_object_unref(sink_pad);
+    gst_object_unref(sink_pad);
     gst_caps_unref(caps);
     return FALSE;
   }
@@ -166,7 +166,7 @@ libgnac_gstu_get_compatible_pad(GstElement  *element,
 
   g_free(pad_name);
   g_free(sink_pad_name);
-  g_object_unref(sink_pad);
+  gst_object_unref(sink_pad);
 
   return TRUE;
 }
diff --git a/libgnac/libgnac-gst.c b/libgnac/libgnac-gst.c
index fbec70f..8cfa60d 100644
--- a/libgnac/libgnac-gst.c
+++ b/libgnac/libgnac-gst.c
@@ -362,7 +362,7 @@ libgnac_gst_clean_pipeline(LibgnacMediaItem *item)
       libgnac_debug("Unable to set state to null");
       return;
     }
-    g_object_unref(GST_OBJECT(item->pipeline));
+    gst_object_unref(item->pipeline);
     item->pipeline = NULL;
   }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]