Spacing and use ascii checkmarks for codecs in about:

This commit is contained in:
Christian Dywan 2012-02-25 02:42:50 +01:00
parent 18b6b48ef5
commit 1488301535

View file

@ -3710,13 +3710,14 @@ list_video_formats ()
gchar* value = sokoke_js_script_eval (js_context, gchar* value = sokoke_js_script_eval (js_context,
"var supported = function (format) { " "var supported = function (format) { "
"var video = document.createElement('video');" "var video = document.createElement('video');"
"return !!video.canPlayType && video.canPlayType (format) != 'no' };" "return !!video.canPlayType && video.canPlayType (format) != 'no' "
"' H264: ' + " "? 'x' : '  '; };"
"supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + " "' H264 [' +"
"' Ogg Theora: ' + " "supported('video/mp4; codecs=\"avc1.42E01E, mp4a.40.2\"') + ']' + "
"supported('video/ogg; codecs=\"theora, vorbis\"') + " "'   Ogg Theora [' + "
"' WebM: ' + " "supported('video/ogg; codecs=\"theora, vorbis\"') + ']' + "
"supported('video/webm; codecs=\"vp8, vorbis\"')" "'   WebM [' + "
"supported('video/webm; codecs=\"vp8, vorbis\"') + ']' "
"", NULL); "", NULL);
gtk_widget_destroy (web_view); gtk_widget_destroy (web_view);
return value; return value;