[totem] backend: Force reading from path for CDDA URIs



commit c2efd1699288484d5d52c8254d1409e5da3a0b11
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 7b20f4c..8431e96 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -3851,6 +3851,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]