[xiph-commits] r3146 - liboggplay/trunk/plugin/test

tahn at svn.annodex.net tahn at svn.annodex.net
Thu Jun 28 21:11:25 PDT 2007


Author: tahn
Date: 2007-06-28 21:11:25 -0700 (Thu, 28 Jun 2007)
New Revision: 3146

Modified:
   liboggplay/trunk/plugin/test/test.html
Log:
Allow .ogg files, and make sure we return something valid if the user cancels the prompt-for-movie.


Modified: liboggplay/trunk/plugin/test/test.html
===================================================================
--- liboggplay/trunk/plugin/test/test.html	2007-06-29 03:37:18 UTC (rev 3145)
+++ liboggplay/trunk/plugin/test/test.html	2007-06-29 04:11:25 UTC (rev 3146)
@@ -491,13 +491,14 @@
     }
   }
   s = prompt("Enter the movie:");
-  if (s == null) {
-    return;
+  if (s == null || s == "") {
+    return plugin.getCurrentMovie();
   }
   if (s.substr(0, 7) != "http://") {
     s = "http://media.annodex.net/cmmlwiki/" + s;
   }
-  if (s.substr(s.length - 4, 4) != ".axv") {
+  ext = s.substr(s.length - 4, 4);
+  if (ext != ".axv" && ext!= ".ogg") {
     s = s + ".axv";
   }
   return s;



More information about the commits mailing list