[xiph-commits] r3264 - in liboggplay/trunk: include/oggplay src/liboggplay

shans at svn.annodex.net shans at svn.annodex.net
Wed Oct 31 21:52:17 PDT 2007


Author: shans
Date: 2007-10-31 21:52:16 -0700 (Wed, 31 Oct 2007)
New Revision: 3264

Modified:
   liboggplay/trunk/include/oggplay/oggplay.h
   liboggplay/trunk/src/liboggplay/Version_script.in
   liboggplay/trunk/src/liboggplay/oggplay.c
Log:
Added oggplay_media_finished_retrieving function



Modified: liboggplay/trunk/include/oggplay/oggplay.h
===================================================================
--- liboggplay/trunk/include/oggplay/oggplay.h	2007-10-29 08:06:24 UTC (rev 3263)
+++ liboggplay/trunk/include/oggplay/oggplay.h	2007-11-01 04:52:16 UTC (rev 3264)
@@ -131,6 +131,9 @@
 int
 oggplay_get_duration(OggPlay * player);
 
+int
+oggplay_media_finished_retrieving(OggPlay * player);
+
 #ifdef __cplusplus
 }
 #endif

Modified: liboggplay/trunk/src/liboggplay/Version_script.in
===================================================================
--- liboggplay/trunk/src/liboggplay/Version_script.in	2007-10-29 08:06:24 UTC (rev 3263)
+++ liboggplay/trunk/src/liboggplay/Version_script.in	2007-11-01 04:52:16 UTC (rev 3264)
@@ -33,7 +33,7 @@
                 oggplay_get_video_fps;
                 oggplay_get_audio_channels;
                 oggplay_get_audio_samplerate;				
-	        oggplay_get_stream_state;
+                oggplay_get_stream_state;
 
                 oggplay_callback_info_get_type;
                 oggplay_callback_info_get_available;
@@ -62,6 +62,7 @@
                 oggplay_seek;
                 oggplay_get_available;
                 oggplay_get_duration;
+                oggplay_media_finished_retrieving;
         local:
                 *;
 };

Modified: liboggplay/trunk/src/liboggplay/oggplay.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay.c	2007-10-29 08:06:24 UTC (rev 3263)
+++ liboggplay/trunk/src/liboggplay/oggplay.c	2007-11-01 04:52:16 UTC (rev 3264)
@@ -588,4 +588,17 @@
   return me->reader->duration(me->reader);
 }
 
+int
+oggplay_media_finished_retrieving(OggPlay *me) {
 
+  if (me == NULL) {
+    return E_OGGPLAY_BAD_OGGPLAY;
+  }
+
+  if (me->reader == NULL) {
+    return E_OGGPLAY_BAD_READER;
+  }
+
+  return me->reader->finished_retrieving(me->reader);
+
+}



More information about the commits mailing list