[xiph-commits] r2983 - liboggplay/trunk/src/liboggplay

shans at svn.annodex.net shans at svn.annodex.net
Mon Jun 18 01:21:02 PDT 2007


Author: shans
Date: 2007-06-18 01:21:02 -0700 (Mon, 18 Jun 2007)
New Revision: 2983

Modified:
   liboggplay/trunk/src/liboggplay/oggplay.c
Log:
Modified new_with_reader and open_with_reader functions - they no longer take
a location parameter



Modified: liboggplay/trunk/src/liboggplay/oggplay.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay.c	2007-06-18 08:20:27 UTC (rev 2982)
+++ liboggplay/trunk/src/liboggplay/oggplay.c	2007-06-18 08:21:02 UTC (rev 2983)
@@ -50,12 +50,11 @@
 #include <time.h>
 
 OggPlay *
-oggplay_new_with_reader(OggPlayReader *reader, char *location) {
+oggplay_new_with_reader(OggPlayReader *reader) {
 
   OggPlay * me = (OggPlay *)malloc(sizeof(OggPlay));
   
   me->reader = reader;
-  me->input_name = strdup(location);
   me->decode_data = NULL;
   me->callback_info = NULL;
   me->num_tracks = 0;
@@ -76,7 +75,7 @@
   OggPlayErrorCode  return_val;
   int               i;
   
-  return_val = me->reader->initialise(me->reader, me->input_name, block);
+  return_val = me->reader->initialise(me->reader, block);
   
   if (return_val != E_OGGPLAY_OK) {
     return return_val;
@@ -135,9 +134,9 @@
 }
   
 OggPlay *
-oggplay_open_with_reader(OggPlayReader *reader, char *location) {
+oggplay_open_with_reader(OggPlayReader *reader) {
 
-  OggPlay *me = oggplay_new_with_reader(reader, location);
+  OggPlay *me = oggplay_new_with_reader(reader);
   
   if (oggplay_initialise(me, 0) != E_OGGPLAY_OK) {
     free(me);



More information about the commits mailing list