[longomatch] fix path to uri conversion on windows
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] fix path to uri conversion on windows
- Date: Thu, 28 Mar 2013 09:57:33 +0000 (UTC)
commit 39ea47a7a322e75bb293910a82aded089149ab01
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Mar 28 10:56:48 2013 +0100
fix path to uri conversion on windows
libcesarplayer/video-utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libcesarplayer/video-utils.c b/libcesarplayer/video-utils.c
index 60d409e..d392deb 100644
--- a/libcesarplayer/video-utils.c
+++ b/libcesarplayer/video-utils.c
@@ -307,7 +307,11 @@ lgm_discover_uri (
GstDiscovererResult ret;
gchar *uri, *path;
+#ifdef G_OS_WIN32
+ if (g_path_is_absolute(filename) || !gst_uri_is_valid (filename)) {
+#else
if (!gst_uri_is_valid (filename)) {
+#endif
if (!g_path_is_absolute (filename)) {
gchar *cur_dir;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]