summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-05-15 17:48:59 +0200
committerBastien Nocera <hadess@hadess.net>2014-08-18 12:54:35 +0200
commit5753d7239f1130d9ea50a3fccc74d03f1d198d48 (patch)
tree9983c82e093e4779585c620aac7a6d7009bb8f22
parenta71e8cc724299cec5a39cb3924c506b7ee185df8 (diff)
downloadtotem-5753d7239f1130d9ea50a3fccc74d03f1d198d48.tar.gz
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
-rw-r--r--src/backend/bacon-video-widget.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index eef265db4..bd94160fa 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);
}