[gupnp-dlna] Port to GStreamer 1.0, again



commit d21b9781e798fcc9f4bee6dffe24dbdc985ea9ec
Author: Jens Georg <mail jensge org>
Date:   Fri Nov 30 23:10:59 2012 +0100

    Port to GStreamer 1.0, again

 configure.ac                                       |    6 +++---
 .../gstreamer/gupnp-dlna-gst-audio-information.c   |   16 ++++++++--------
 .../gupnp-dlna-gst-container-information.c         |   16 ++++++++--------
 .../gstreamer/gupnp-dlna-gst-image-information.c   |   16 ++++++++--------
 .../gstreamer/gupnp-dlna-gst-information.c         |   16 ++++++++--------
 .../gstreamer/gupnp-dlna-gst-video-information.c   |   16 ++++++++--------
 6 files changed, 43 insertions(+), 43 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 918f24a..94df5ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,9 +66,9 @@ AC_ARG_ENABLE([gstreamer-metadata-backend],
 if test "x$enable_gstreamer_metadata_backend" != 'xno'
 then
         gstreamer_found='yes'
-        GST_MAJORMINOR=0.10
-        GST_REQ=0.10.29.2
-        GSTPBU_REQ=0.10.32
+        GST_MAJORMINOR=1.0
+        GST_REQ=1.0
+        GSTPBU_REQ=1.0
 
         PKG_CHECK_MODULES([GST],
                           [gstreamer-$GST_MAJORMINOR >= $GST_REQ],
diff --git a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c
index f6e161b..e7dcb0e 100644
--- a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c
+++ b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-audio-information.c
@@ -280,7 +280,7 @@ gupnp_dlna_gst_audio_information_set_property (GObject      *object,
                 g_clear_pointer (&priv->info,
                                  gupnp_dlna_gst_discoverer_info_unref);
                 priv->info =
-                        GST_DISCOVERER_INFO (gst_value_dup_mini_object (value));
+                        GST_DISCOVERER_INFO (g_value_dup_object (value));
                 break;
 
         default:
@@ -301,7 +301,7 @@ gupnp_dlna_gst_audio_information_get_property (GObject    *object,
 
         switch (property_id) {
         case PROP_INFO:
-                gst_value_set_mini_object (value, GST_MINI_OBJECT (priv->info));
+                g_value_set_object (value, G_OBJECT (priv->info));
                 break;
 
         default:
@@ -338,12 +338,12 @@ gupnp_dlna_gst_audio_information_class_init
         info_class->get_wma_version = backend_get_wma_version;
         info_class->get_mime = backend_get_mime;
 
-        pspec = gst_param_spec_mini_object ("info",
-                                            "info",
-                                            "discoverer info",
-                                            GST_TYPE_DISCOVERER_INFO,
-                                            G_PARAM_READWRITE |
-                                            G_PARAM_CONSTRUCT);
+        pspec = g_param_spec_object ("info",
+                                     "info",
+                                     "discoverer info",
+                                     GST_TYPE_DISCOVERER_INFO,
+                                     G_PARAM_READWRITE |
+                                     G_PARAM_CONSTRUCT);
         g_object_class_install_property (object_class,
                                          PROP_INFO,
                                          pspec);
diff --git a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-container-information.c b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-container-information.c
index 2da4170..4d1e2c8 100644
--- a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-container-information.c
+++ b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-container-information.c
@@ -183,7 +183,7 @@ gupnp_dlna_gst_container_information_set_property (GObject      *object,
                 g_clear_pointer (&priv->info,
                                  gupnp_dlna_gst_discoverer_info_unref);
                 priv->info =
-                        GST_DISCOVERER_INFO (gst_value_dup_mini_object (value));
+                        GST_DISCOVERER_INFO (g_value_dup_object (value));
                 break;
 
         default:
@@ -204,7 +204,7 @@ gupnp_dlna_gst_container_information_get_property (GObject    *object,
 
         switch (property_id) {
         case PROP_INFO:
-                gst_value_set_mini_object (value, GST_MINI_OBJECT (priv->info));
+                g_value_set_object (value, G_OBJECT (priv->info));
                 break;
 
         default:
@@ -235,12 +235,12 @@ gupnp_dlna_gst_container_information_class_init
         info_class->get_variant = backend_get_variant;
         info_class->get_mime = backend_get_mime;
 
-        pspec = gst_param_spec_mini_object ("info",
-                                            "info",
-                                            "discoverer info",
-                                            GST_TYPE_DISCOVERER_INFO,
-                                            G_PARAM_READWRITE |
-                                            G_PARAM_CONSTRUCT);
+        pspec = g_param_spec_object ("info",
+                                     "info",
+                                     "discoverer info",
+                                     GST_TYPE_DISCOVERER_INFO,
+                                     G_PARAM_READWRITE |
+                                     G_PARAM_CONSTRUCT);
         g_object_class_install_property (object_class,
                                          PROP_INFO,
                                          pspec);
diff --git a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-image-information.c b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-image-information.c
index 6a01841..0f2782a 100644
--- a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-image-information.c
+++ b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-image-information.c
@@ -177,7 +177,7 @@ gupnp_dlna_gst_image_information_set_property (GObject      *object,
                 g_clear_pointer (&priv->info,
                                  gupnp_dlna_gst_discoverer_info_unref);
                 priv->info =
-                        GST_DISCOVERER_INFO (gst_value_dup_mini_object (value));
+                        GST_DISCOVERER_INFO (g_value_dup_object (value));
                 break;
 
         default:
@@ -198,7 +198,7 @@ gupnp_dlna_gst_image_information_get_property (GObject    *object,
 
         switch (property_id) {
         case PROP_INFO:
-                gst_value_set_mini_object (value, GST_MINI_OBJECT (priv->info));
+                g_value_set_object (value, G_OBJECT (priv->info));
                 break;
 
         default:
@@ -227,12 +227,12 @@ gupnp_dlna_gst_image_information_class_init
         info_class->get_width = backend_get_width;
         info_class->get_mime = backend_get_mime;
 
-        pspec = gst_param_spec_mini_object ("info",
-                                            "info",
-                                            "discoverer info",
-                                            GST_TYPE_DISCOVERER_INFO,
-                                            G_PARAM_READWRITE |
-                                            G_PARAM_CONSTRUCT);
+        pspec = g_param_spec_object ("info",
+                                     "info",
+                                     "discoverer info",
+                                     GST_TYPE_DISCOVERER_INFO,
+                                     G_PARAM_READWRITE |
+                                     G_PARAM_CONSTRUCT);
         g_object_class_install_property (object_class,
                                          PROP_INFO,
                                          pspec);
diff --git a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-information.c b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-information.c
index ba9f795..2930762 100644
--- a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-information.c
+++ b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-information.c
@@ -65,7 +65,7 @@ gupnp_dlna_gst_information_set_property (GObject      *object,
                 g_clear_pointer (&priv->info,
                                  gupnp_dlna_gst_discoverer_info_unref);
                 priv->info =
-                        GST_DISCOVERER_INFO (gst_value_dup_mini_object (value));
+                        GST_DISCOVERER_INFO (g_value_dup_object (value));
 
                 break;
 
@@ -87,7 +87,7 @@ gupnp_dlna_gst_information_get_property (GObject    *object,
 
         switch (property_id) {
         case PROP_INFO:
-                gst_value_set_mini_object (value, GST_MINI_OBJECT (priv->info));
+                g_value_set_object (value, G_OBJECT (priv->info));
 
                 break;
 
@@ -162,12 +162,12 @@ gupnp_dlna_gst_information_class_init
         info_class->get_image_information = backend_get_image_information;
         info_class->get_video_information = backend_get_video_information;
 
-        pspec = gst_param_spec_mini_object ("info",
-                                            "info",
-                                            "discoverer info",
-                                            GST_TYPE_DISCOVERER_INFO,
-                                            G_PARAM_READWRITE |
-                                            G_PARAM_CONSTRUCT);
+        pspec = g_param_spec_object ("info",
+                                     "info",
+                                     "discoverer info",
+                                     GST_TYPE_DISCOVERER_INFO,
+                                     G_PARAM_READWRITE |
+                                     G_PARAM_CONSTRUCT);
         g_object_class_install_property (object_class,
                                          PROP_INFO,
                                          pspec);
diff --git a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-video-information.c b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-video-information.c
index 6b098ce..706ab76 100644
--- a/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-video-information.c
+++ b/libgupnp-dlna/metadata-backends/gstreamer/gupnp-dlna-gst-video-information.c
@@ -303,7 +303,7 @@ gupnp_dlna_gst_video_information_set_property (GObject      *object,
                 g_clear_pointer (&priv->info,
                                  gupnp_dlna_gst_discoverer_info_unref);
                 priv->info =
-                        GST_DISCOVERER_INFO (gst_value_dup_mini_object (value));
+                        GST_DISCOVERER_INFO (g_value_dup_object (value));
                 break;
 
         default:
@@ -324,7 +324,7 @@ gupnp_dlna_gst_video_information_get_property (GObject    *object,
 
         switch (property_id) {
         case PROP_INFO:
-                gst_value_set_mini_object (value, GST_MINI_OBJECT (priv->info));
+                g_value_set_object (value, G_OBJECT (priv->info));
                 break;
 
         default:
@@ -360,12 +360,12 @@ gupnp_dlna_gst_video_information_class_init
         info_class->get_width = backend_get_width;
         info_class->get_mime = backend_get_mime;
 
-        pspec = gst_param_spec_mini_object ("info",
-                                            "info",
-                                            "discoverer info",
-                                            GST_TYPE_DISCOVERER_INFO,
-                                            G_PARAM_READWRITE |
-                                            G_PARAM_CONSTRUCT);
+        pspec = g_param_spec_object ("info",
+                                     "info",
+                                     "discoverer info",
+                                     GST_TYPE_DISCOVERER_INFO,
+                                     G_PARAM_READWRITE |
+                                     G_PARAM_CONSTRUCT);
         g_object_class_install_property (object_class,
                                          PROP_INFO,
                                          pspec);



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