[MPlayer-cvslog] r33810 - trunk/stream/stream.c

reimar subversion at mplayerhq.hu
Mon Jul 4 21:23:03 CEST 2011


Author: reimar
Date: Mon Jul  4 21:23:03 2011
New Revision: 33810

Log:
Reindent, add empty lines.

Modified:
   trunk/stream/stream.c

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	Mon Jul  4 21:21:59 2011	(r33809)
+++ trunk/stream/stream.c	Mon Jul  4 21:23:03 2011	(r33810)
@@ -316,18 +316,20 @@ int stream_read_internal(stream_t *s, vo
     // we need to skip this code or seeks will hang.
     if (s->type == STREAMTYPE_DVDNAV)
       goto eof_out;
-      // just in case this is an error e.g. due to network
-      // timeout reset and retry
-      // Seeking is used as a hack to make network streams
-      // reopen the connection, ideally they would implement
-      // e.g. a STREAM_CTRL_RECONNECT to do this
-      s->eof=1;
-      stream_reset(s);
+
+    // just in case this is an error e.g. due to network
+    // timeout reset and retry
+    // Seeking is used as a hack to make network streams
+    // reopen the connection, ideally they would implement
+    // e.g. a STREAM_CTRL_RECONNECT to do this
+    s->eof=1;
+    stream_reset(s);
     if (stream_seek_internal(s, pos) >= 0 || s->pos != pos) // seek failed
       goto eof_out;
-      // make sure EOF is set to ensure no endless loops
-      s->eof=1;
-      return stream_read_internal(s, buf, orig_len);
+    // make sure EOF is set to ensure no endless loops
+    s->eof=1;
+    return stream_read_internal(s, buf, orig_len);
+
 eof_out:
     s->eof=1;
     return 0;


More information about the MPlayer-cvslog mailing list