[totem/gnome-3-10] backend: Force reading from path for CDDA URIs
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-10] backend: Force reading from path for CDDA URIs
- Date: Thu, 15 May 2014 15:51:10 +0000 (UTC)
commit 70bd8fd42811bb932a6531fe200d31fafd56c0c4
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 5b8c091..a27eced 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -3466,6 +3466,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]