summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/cache2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 6e77cbcc7e..914f20d601 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -599,7 +599,8 @@ int cache_do_control(stream_t *stream, int cmd, void *arg) {
case STREAM_CTRL_SEEK_TO_CHAPTER:
case STREAM_CTRL_SEEK_TO_TIME:
case STREAM_CTRL_SET_ANGLE:
- stream->pos = s->read_filepos = s->control_new_pos;
+ if (s->control_res != STREAM_UNSUPPORTED)
+ stream->pos = s->read_filepos = s->control_new_pos;
break;
}
return s->control_res;