summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-30 22:46:25 +0100
committerwm4 <wm4@nowhere>2014-10-30 22:46:36 +0100
commita77a171b7ff436cb63b13321427a259a2a8c8fc7 (patch)
tree67597e78bded0eb1e4a77edaa82ed86a772e0456 /stream/stream.h
parent56b852710ad0b6b1466427549db0792ee67318aa (diff)
downloadmpv-a77a171b7ff436cb63b13321427a259a2a8c8fc7.tar.bz2
mpv-a77a171b7ff436cb63b13321427a259a2a8c8fc7.tar.xz
demux_lavf: mark as seekable if protocol supports seeking by time
Basically, this will mark the demuxer as seekable with rtmp* and mmsh protocols. These protocols have network-level time seeking, and whether you can seek on the byte level does not matter. Until now, seeking was typically only enabled because of the cache, and a (nonsensical) warning was shown accordingly. It still could happen that the server doesn't actually support thse requests (or simply rejects them), so this is somewhat imperfect.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index e7a0bb5dca..5cf3487462 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -105,6 +105,7 @@ enum stream_ctrl {
STREAM_CTRL_DVB_SET_CHANNEL,
STREAM_CTRL_DVB_STEP_CHANNEL,
STREAM_CTRL_AVSEEK,
+ STREAM_CTRL_HAS_AVSEEK,
};
struct stream_lang_req {