changeset 33722:5e80ff193bc2

Reindent, add empty lines.
author reimar
date Mon, 04 Jul 2011 19:23:03 +0000
parents 1bb847d89fd5
children 6c8743e5fa30
files stream/stream.c
diffstat 1 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream.c	Mon Jul 04 19:21:59 2011 +0000
+++ b/stream/stream.c	Mon Jul 04 19:23:03 2011 +0000
@@ -316,18 +316,20 @@
     // 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;