[vlc-commits] Normalize local paths in set_mrl

Olivier Aubert git at videolan.org
Thu Feb 14 09:16:05 CET 2013


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Jan 15 15:05:39 2013 +0100| [ea281da3afadb6e7300cf722801ac3496f029ad3] | committer: Olivier Aubert

Normalize local paths in set_mrl

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=ea281da3afadb6e7300cf722801ac3496f029ad3
---

 override.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/override.py b/override.py
index 38205a2..f431ea3 100644
--- a/override.py
+++ b/override.py
@@ -70,7 +70,7 @@ class Instance:
             m = libvlc_media_new_location(self, str_to_bytes(mrl))
         else:
             # Else it should be a local path.
-            m = libvlc_media_new_path(self, str_to_bytes(mrl))
+            m = libvlc_media_new_path(self, str_to_bytes(os.path.normpath(mrl)))
         for o in options:
             libvlc_media_add_option(m, str_to_bytes(o))
         m._instance = self



More information about the vlc-commits mailing list