[Xfce4-commits] <midori:master> Spacing and use ascii checkmarks for codecs in about:
Christian Dywan
noreply at xfce.org
Sat Feb 25 02:44:01 CET 2012
Updating branch refs/heads/master
to 1488301535ec246f879d8a7c6ddd4241994a6c3e (commit)
from 18b6b48ef5feea17e51e4a64149013b6fcac34e0 (commit)
commit 1488301535ec246f879d8a7c6ddd4241994a6c3e
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Feb 25 02:42:50 2012 +0100
Spacing and use ascii checkmarks for codecs in about:
midori/midori-view.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index a94881f..809a2c3 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3710,13 +3710,14 @@ list_video_formats ()
gchar* value = sokoke_js_script_eval (js_context,
"var supported = function (format) { "
"var video = document.createElement('video');"
- "return !!video.canPlayType && video.canPlayType (format) != 'no' };"
- "' H264: ' + "
- "supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + "
- "' Ogg Theora: ' + "
- "supported('video/ogg; codecs=\"theora, vorbis\"') + "
- "' WebM: ' + "
- "supported('video/webm; codecs=\"vp8, vorbis\"')"
+ "return !!video.canPlayType && video.canPlayType (format) != 'no' "
+ "? 'x' : ' '; };"
+ "' H264 [' +"
+ "supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + ']' + "
+ "' Ogg Theora [' + "
+ "supported('video/ogg; codecs=\"theora, vorbis\"') + ']' + "
+ "' WebM [' + "
+ "supported('video/webm; codecs=\"vp8, vorbis\"') + ']' "
"", NULL);
gtk_widget_destroy (web_view);
return value;
More information about the Xfce4-commits
mailing list