diff src/flacng/seekable_stream_callbacks.c @ 1272:47559538ce3d

- stop read_metadata from stomping on the wrong file descriptors
author Ralf Ertzinger <ralf@skytale.net>
date Sun, 15 Jul 2007 15:00:10 +0200
parents 690659633ec5
children 98c893ce663f
line wrap: on
line diff
--- a/src/flacng/seekable_stream_callbacks.c	Fri Jul 13 21:31:17 2007 +0200
+++ b/src/flacng/seekable_stream_callbacks.c	Sun Jul 15 15:00:10 2007 +0200
@@ -116,7 +116,7 @@
 
     if (-1 == (position = vfs_ftell(info->input_stream))) {
         _ERROR("Could not tell current position!");
-        return FLAC__STREAM_DECODER_TELL_STATUS_ERROR;
+        _LEAVE FLAC__STREAM_DECODER_TELL_STATUS_ERROR;
     }
 
     _DEBUG("Current position: %ld", position);
@@ -145,7 +145,7 @@
      */
     if (0 == info->read_max) {
         _DEBUG("read_max exhausted, faking EOF");
-        return TRUE;
+        _LEAVE TRUE;
     }
 
     eof = vfs_feof(info->input_stream);