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

shans at svn.annodex.net shans at svn.annodex.net
Mon Jun 18 01:22:34 PDT 2007


Author: shans
Date: 2007-06-18 01:22:33 -0700 (Mon, 18 Jun 2007)
New Revision: 2985

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_query.c
Log:
Changed tests for input_name to tests for all_tracks_initialised in 
oggplay_query functions



Modified: liboggplay/trunk/src/liboggplay/oggplay_query.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_query.c	2007-06-18 08:21:43 UTC (rev 2984)
+++ liboggplay/trunk/src/liboggplay/oggplay_query.c	2007-06-18 08:22:33 UTC (rev 2985)
@@ -49,8 +49,8 @@
     return E_OGGPLAY_BAD_READER;
   }
 
-  if (me->input_name == NULL) {
-    return E_OGGPLAY_BAD_INPUT;
+  if (me->all_tracks_initialised == 0) {
+    return E_OGGPLAY_UNINITIALISED;
   }
 
   return me->num_tracks;
@@ -68,10 +68,10 @@
     return (OggzStreamContent)E_OGGPLAY_BAD_READER;
   }
 
-  if (me->input_name == NULL) {
-    return (OggzStreamContent)E_OGGPLAY_BAD_INPUT;
+  if (me->all_tracks_initialised == 0) {
+    return E_OGGPLAY_UNINITIALISED;
   }
-  
+
   if (track_num < 0 || track_num >= me->num_tracks) {
     return (OggzStreamContent)E_OGGPLAY_BAD_TRACK;
   }
@@ -90,10 +90,10 @@
     return NULL;
   }
 
-  if (me->input_name == NULL) {
+  if (me->all_tracks_initialised == 0) {
     return NULL;
   }
-  
+
   if (track_num < 0 || track_num >= me->num_tracks) {
     return NULL;
   }
@@ -114,8 +114,8 @@
     return E_OGGPLAY_BAD_READER;
   }
 
-  if (me->input_name == NULL) {
-    return E_OGGPLAY_BAD_INPUT;
+  if (me->all_tracks_initialised == 0) {
+    return E_OGGPLAY_UNINITIALISED;
   }
 
   if (track_num < 0 || track_num >= me->num_tracks) {
@@ -166,8 +166,8 @@
     return E_OGGPLAY_BAD_READER;
   }
 
-  if (me->input_name == NULL) {
-    return E_OGGPLAY_BAD_INPUT;
+  if (me->all_tracks_initialised == 0) {
+    return E_OGGPLAY_UNINITIALISED;
   }
 
   if (track_num < 0 || track_num >= me->num_tracks) {



More information about the commits mailing list