[vlc-commits] python bindings: explicitly convert string to bytes
Olivier Aubert
git at videolan.org
Mon Sep 10 17:00:16 CEST 2012
vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Sep 10 16:39:14 2012 +0200| [c47f16f6dde03f2121ba101c51e7691cc0caf1ea] | committer: Olivier Aubert
python bindings: explicitly convert string to bytes
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=c47f16f6dde03f2121ba101c51e7691cc0caf1ea
---
footer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/footer.py b/footer.py
index d294265..9263b35 100644
--- a/footer.py
+++ b/footer.py
@@ -144,7 +144,7 @@ if __name__ == '__main__':
player.video_set_marquee_int(VideoMarqueeOption.Refresh, 1000) # millisec (or sec?)
##t = '$L / $D or $P at $T'
t = '%Y-%m-%d %H:%M:%S'
- player.video_set_marquee_string(VideoMarqueeOption.Text, t)
+ player.video_set_marquee_string(VideoMarqueeOption.Text, str_to_bytes(t))
# Some event manager examples. Note, the callback can be any Python
# callable and does not need to be decorated. Optionally, specify
More information about the vlc-commits
mailing list