[xiph-commits] r2986 - liboggplay/trunk/src/tools

shans at svn.annodex.net shans at svn.annodex.net
Mon Jun 18 01:23:20 PDT 2007


Author: shans
Date: 2007-06-18 01:23:20 -0700 (Mon, 18 Jun 2007)
New Revision: 2986

Modified:
   liboggplay/trunk/src/tools/dump-all-streams.c
   liboggplay/trunk/src/tools/get-stream-info.c
   liboggplay/trunk/src/tools/glut-player.c
   liboggplay/trunk/src/tools/oggplay-info.c
Log:
Modified tools to pass location / filename in at reader creation rather
than oggplay creation



Modified: liboggplay/trunk/src/tools/dump-all-streams.c
===================================================================
--- liboggplay/trunk/src/tools/dump-all-streams.c	2007-06-18 08:22:33 UTC (rev 2985)
+++ liboggplay/trunk/src/tools/dump-all-streams.c	2007-06-18 08:23:20 UTC (rev 2986)
@@ -134,9 +134,9 @@
     exit (1);
   }
   
-  reader = oggplay_file_reader_new();
+  reader = oggplay_file_reader_new(argv[1]);
 
-  player = oggplay_open_with_reader(reader, argv[1]);
+  player = oggplay_open_with_reader(reader);
 
   if (player == NULL) {
     printf ("could not initialise oggplay with this file\n");

Modified: liboggplay/trunk/src/tools/get-stream-info.c
===================================================================
--- liboggplay/trunk/src/tools/get-stream-info.c	2007-06-18 08:22:33 UTC (rev 2985)
+++ liboggplay/trunk/src/tools/get-stream-info.c	2007-06-18 08:23:20 UTC (rev 2986)
@@ -16,9 +16,9 @@
     exit (1);
   }
   
-  reader = oggplay_file_reader_new();
+  reader = oggplay_file_reader_new(argv[1]);
 
-  player = oggplay_open_with_reader(reader, argv[1]);
+  player = oggplay_open_with_reader(reader);
 
   if (player == NULL) {
     printf ("could not initialise oggplay with this file\n");

Modified: liboggplay/trunk/src/tools/glut-player.c
===================================================================
--- liboggplay/trunk/src/tools/glut-player.c	2007-06-18 08:22:33 UTC (rev 2985)
+++ liboggplay/trunk/src/tools/glut-player.c	2007-06-18 08:23:20 UTC (rev 2986)
@@ -393,12 +393,12 @@
   }
  
   if (strncmp(argv[1], "http://", 7) == 0) {
-    reader = oggplay_tcp_reader_new();
+    reader = oggplay_tcp_reader_new(argv[1]);
   } else {
-    reader = oggplay_file_reader_new();
+    reader = oggplay_file_reader_new(argv[1]);
   }
 
-  player = oggplay_open_with_reader(reader, argv[1]);
+  player = oggplay_open_with_reader(reader);
 
   if (player == NULL) {
     printf ("could not initialise oggplay with this file\n");

Modified: liboggplay/trunk/src/tools/oggplay-info.c
===================================================================
--- liboggplay/trunk/src/tools/oggplay-info.c	2007-06-18 08:22:33 UTC (rev 2985)
+++ liboggplay/trunk/src/tools/oggplay-info.c	2007-06-18 08:23:20 UTC (rev 2986)
@@ -89,9 +89,9 @@
     exit (1);
   }
   
-  reader = oggplay_file_reader_new();
+  reader = oggplay_file_reader_new(argv[1]);
 
-  player = oggplay_open_with_reader(reader, argv[1]);
+  player = oggplay_open_with_reader(reader);
 
   if (player == NULL) {
     printf ("could not initialise oggplay with this file\n");



More information about the commits mailing list