[totem] backend: Remove _get_mrls() helper function



commit ae0b80f2eb789974c546cb9cf277865de82e1c5f
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Apr 11 12:34:21 2012 +0100

    backend: Remove _get_mrls() helper function
    
    It's not called anymore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=673590

 docs/reference/totem-sections.txt         |    1 -
 src/backend/bacon-video-widget-gst-0.10.c |   86 -----------------------------
 src/backend/bacon-video-widget.h          |    4 -
 3 files changed, 0 insertions(+), 91 deletions(-)
---
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index 52db1a2..688905f 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -220,7 +220,6 @@ bacon_video_widget_set_logo
 bacon_video_widget_get_logo_mode
 bacon_video_widget_set_logo_mode
 bacon_video_widget_get_metadata
-bacon_video_widget_get_mrls
 bacon_video_widget_get_option_group
 bacon_video_widget_get_position
 bacon_video_widget_set_referrer
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index a31e19c..9fe3ed8 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -5248,92 +5248,6 @@ done:
   return res;
 }
 
-/**
- * bacon_video_widget_get_mrls:
- * @bvw: a #BaconVideoWidget
- * @type: the media type
- * @device: the device name
- * @error: a #GError, or %NULL
- *
- * Returns an array of MRLs available for the given @device and media @type.
- *
- * @device should typically be the number of the device (e.g. <code class="literal">0</code> for the first
- * DVD drive.
- *
- * @type can be any value from #TotemDiscMediaType, but a %BVW_ERROR_INVALID_LOCATION error
- * will be returned if @type is %MEDIA_TYPE_CDDA, as CDDA support has been removed from
- * Totem (and hence #BaconVideoWidget).
- *
- * A %BVW_ERROR_NO_PLUGIN_FOR_FILE error will be returned if the required GStreamer elements do
- * not exist for the given @type (for the GStreamer backend). *
- * If @device does not exist, a %BVW_ERROR_INVALID_DEVICE error will be returned.
- *
- * Return value: a %NULL-terminated array of MRLs, or %NULL; free with g_strfreev()
- **/
-gchar **
-bacon_video_widget_get_mrls (BaconVideoWidget * bvw,
-			     TotemDiscMediaType type,
-			     const char *device,
-			     GError **error)
-{
-  gchar **mrls;
-
-  g_return_val_if_fail (bvw != NULL, NULL);
-  g_return_val_if_fail (BACON_IS_VIDEO_WIDGET (bvw), NULL);
-  g_return_val_if_fail (GST_IS_ELEMENT (bvw->priv->play), NULL);
-
-  GST_DEBUG ("type = %d", type);
-  GST_DEBUG ("device = %s", GST_STR_NULL (device));
-
-  switch (type) {
-    case MEDIA_TYPE_VCD: {
-	gchar *uri[] = { NULL, NULL };
-	uri[0] = g_strdup_printf ("vcd://%s", device);
-	mrls = g_strdupv (uri);
-	g_free (uri[0]);
-	break;
-      }
-    case MEDIA_TYPE_DVD: {
-      if (!gst_default_registry_check_feature_version ("rsndvdbin", 0, 10, 0)) {
-        GST_DEBUG ("Missing rsndvdbin");
-	g_set_error_literal (error, BVW_ERROR, BVW_ERROR_NO_PLUGIN_FOR_FILE,
-                             "XXX Do not use XXX");
-        return NULL;
-      } else if (!gst_default_registry_check_feature_version ("mpegpsdemux", 0, 10, 0) &&
-		 gst_default_registry_check_feature_version ("flupsdemux", 0, 10, 0) &&
-      		 !gst_default_registry_check_feature_version ("flupsdemux", 0, 10, 15)) {
-        GST_DEBUG ("flupsdemux not new enough for DVD playback");
-	g_set_error_literal (error, BVW_ERROR, BVW_ERROR_NO_PLUGIN_FOR_FILE,
-                             "XXX Do not use XXX");
-        return NULL;
-      } else {
-	gchar *uri[] = { NULL, NULL };
-	uri[0] = g_strdup_printf ("dvd://%s", device);
-	mrls = g_strdupv (uri);
-	g_free (uri[0]);
-      }
-      break;
-    }
-    case MEDIA_TYPE_CDDA:
-      g_set_error_literal (error, BVW_ERROR, BVW_ERROR_INVALID_LOCATION,
-                           "XXX Do not use XXX");
-      return NULL;
-    case MEDIA_TYPE_DATA:
-    case MEDIA_TYPE_DVB:
-    case MEDIA_TYPE_ERROR:
-    default:
-      g_assert_not_reached ();
-  }
-
-  if (mrls == NULL)
-    return NULL;
-
-  g_free (bvw->priv->media_device);
-  bvw->priv->media_device = g_strdup (device);
-
-  return mrls;
-}
-
 static gint
 bvw_get_current_stream_num (BaconVideoWidget * bvw,
     const gchar *stream_type)
diff --git a/src/backend/bacon-video-widget.h b/src/backend/bacon-video-widget.h
index 583f47a..0b3609b 100644
--- a/src/backend/bacon-video-widget.h
+++ b/src/backend/bacon-video-widget.h
@@ -234,10 +234,6 @@ void bacon_video_widget_set_connection_speed     (BaconVideoWidget *bvw,
 						  int speed);
 int bacon_video_widget_get_connection_speed      (BaconVideoWidget *bvw);
 
-gchar **bacon_video_widget_get_mrls		 (BaconVideoWidget *bvw,
-						  TotemDiscMediaType type,
-						  const char *device,
-						  GError **error);
 void bacon_video_widget_set_subtitle_font	 (BaconVideoWidget *bvw,
 						  const char *font);
 void bacon_video_widget_set_subtitle_encoding	 (BaconVideoWidget *bvw,



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