[totem/gnome-3-12] backend: Force reading from path for CDDA URIs



commit 5753d7239f1130d9ea50a3fccc74d03f1d198d48
Author: Bastien Nocera <hadess hadess net>
Date:   Thu May 15 17:48:59 2014 +0200

    backend: Force reading from path for CDDA URIs
    
    Otherwise we'll try to use the GStreamer CDDA plugins, instead of
    reading from the GIO plugin.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720120

 src/backend/bacon-video-widget.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index eef265d..bd94160 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -3945,6 +3945,11 @@ bacon_video_widget_open (BaconVideoWidget *bvw,
     bvw->priv->mrl = get_target_uri (file);
     GST_DEBUG ("Found target location '%s' for original MRL '%s'",
               GST_STR_NULL (bvw->priv->mrl), mrl);
+  } else if (g_file_has_uri_scheme (file, "cdda") != FALSE) {
+    char *path;
+    path = g_file_get_path (file);
+    bvw->priv->mrl = g_filename_to_uri (path, NULL, NULL);
+    g_free (path);
   } else {
     bvw->priv->mrl = g_strdup (mrl);
   }


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