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

tahn at svn.annodex.net tahn at svn.annodex.net
Tue Jun 26 18:44:26 PDT 2007


Author: tahn
Date: 2007-06-26 18:44:25 -0700 (Tue, 26 Jun 2007)
New Revision: 3071

Modified:
   liboggplay/trunk/src/tools/mac-player.c
Log:
Updated interfaces.


Modified: liboggplay/trunk/src/tools/mac-player.c
===================================================================
--- liboggplay/trunk/src/tools/mac-player.c	2007-06-26 13:47:49 UTC (rev 3070)
+++ liboggplay/trunk/src/tools/mac-player.c	2007-06-27 01:44:25 UTC (rev 3071)
@@ -232,8 +232,7 @@
     n_frames++;
     //printf("%d\n", n_frames);
 
-    oggplay_buffer_free_info(track_info);
-    oggplay_buffer_release_next(player);
+    oggplay_buffer_release(player, track_info);
     MPSignalSemaphore(sem);
   }
 
@@ -388,15 +387,15 @@
     printf("No source provided; using default\n");
   }
   if (strncmp(media, "http://", 7) == 0) {
-    reader = oggplay_tcp_reader_new();
+    reader = oggplay_tcp_reader_new(media);
   } else {
-    reader = oggplay_file_reader_new();
+    reader = oggplay_file_reader_new(media);
   }
   if (reader == NULL) {
     printf("oggplay_file_reader_new failed\n");
     return 1;
   }
-  player = oggplay_open_with_reader(reader, media);
+  player = oggplay_open_with_reader(reader);
   if (player == NULL) {
     printf("Could not initialise oggplay with this file\n");
     goto done;



More information about the commits mailing list