[clutter-gst] Do not use deprecated gstreamer symbols



commit 00c9f499626dac684b652d2135191a12a85913bb
Author: Javier JardÃn <jjardon gnome org>
Date:   Mon Dec 10 02:47:06 2012 +0900

    Do not use deprecated gstreamer symbols
    
    Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=690032

 clutter-gst/clutter-gst-auto-video-sink.c |    5 +++--
 clutter-gst/clutter-gst-player.c          |    2 +-
 clutter-gst/clutter-gst-video-sink.c      |    2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-auto-video-sink.c b/clutter-gst/clutter-gst-auto-video-sink.c
index d151bd8..6276e55 100644
--- a/clutter-gst/clutter-gst-auto-video-sink.c
+++ b/clutter-gst/clutter-gst-auto-video-sink.c
@@ -136,7 +136,8 @@ _factory_filter (GstPluginFeature * feature, gpointer data)
     return FALSE;
 
   /* video sinks */
-  klass = gst_element_factory_get_klass (GST_ELEMENT_FACTORY (feature));
+  klass = gst_element_factory_get_metadata (GST_ELEMENT_FACTORY (feature),
+                                            GST_ELEMENT_METADATA_KLASS);
   if (!(strstr (klass, "Sink") && strstr (klass, "Video")))
     return FALSE;
 
@@ -700,7 +701,7 @@ clutter_gst_auto_video_sink_class_init (ClutterGstAutoVideoSinkClass * klass)
   gst_element_class_add_pad_template (gstelement_class,
       gst_static_pad_template_get (&sink_template_factory));
 
-  gst_element_class_set_details_simple (gstelement_class,
+  gst_element_class_set_metadata (gstelement_class,
       "Auto Clutter Sink",
       "Sink/Video",
       "Autoplug clutter capable video sinks",
diff --git a/clutter-gst/clutter-gst-player.c b/clutter-gst/clutter-gst-player.c
index 179862f..25a10e6 100644
--- a/clutter-gst/clutter-gst-player.c
+++ b/clutter-gst/clutter-gst-player.c
@@ -294,7 +294,7 @@ free_tags_list (GList **listp)
   while (l)
     {
       if (l->data)
-        gst_tag_list_free (l->data);
+        gst_tag_list_unref (l->data);
       l = g_list_delete_link (l, l);
     }
 
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 264b751..7b8cb3e 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -1536,7 +1536,7 @@ clutter_gst_video_sink_class_init (ClutterGstVideoSinkClass * klass)
   gst_element_class_add_pad_template (gstelement_class,
       gst_static_pad_template_get (&sinktemplate_all));
 
-  gst_element_class_set_details_simple (gstelement_class,
+  gst_element_class_set_metadata (gstelement_class,
       "Clutter video sink",
       "Sink/Video",
       "Sends video data from a GStreamer pipeline to a Clutter texture",



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