From 966f0a41a4182cf4027a5d49b248a26ff49368f3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Jan 2015 20:45:31 +0100 Subject: demux_disc: pass seek flags to stream layer Pass through the seek flags to the stream layer. The STREAM_CTRL semantics become a bit awkward, but that's still the least awkward part about optical disc media. Make demux_disc.c request relative seeks. Now the player will use relative seeks if the user sends relative seek commands, and the demuxer announces it wants these by setting rel_seeks to true. This change probably changes seek behavior for dvd, dvdnav, bluray, cdda, and possibly makes seeking useless if the demuxer-cache is set to a high value. Will be used in the next commit. (Split to make reverting the next commit easier.) --- demux/demux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'demux/demux.c') diff --git a/demux/demux.c b/demux/demux.c index c099dbac19..51131dfd4c 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -760,6 +760,7 @@ static void demux_copy(struct demuxer *dst, struct demuxer *src) dst->seekable = src->seekable; dst->filetype = src->filetype; dst->ts_resets_possible = src->ts_resets_possible; + dst->rel_seeks = src->rel_seeks; dst->start_time = src->start_time; } if (src->events & DEMUX_EVENT_STREAMS) { -- cgit v1.2.3