emotion: forgottent strange Windows rules.
authorcedric <cedric>
Thu, 23 Jun 2011 15:33:34 +0000 (15:33 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Jun 2011 15:33:34 +0000 (15:33 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@60638 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/gstreamer/emotion_gstreamer.c

index 0295d4f..8c4c3a6 100644 (file)
@@ -385,7 +385,11 @@ em_file_open(const char   *file,
         eina_strbuf_append(sbuf, "file://");
         if (strncmp(file, "./", 2) == 0)
           file += 2;
-        if (*file != '/')
+       if (strstr(file, ":/") != NULL)
+         { /* We absolutly need file:///C:/ under Windows, so adding it here */
+             eina_strbuf_append(sbuf, "/");
+         }
+       else if (*file != '/')
           {
              char tmp[PATH_MAX];