diff options
author | wm4 <wm4@nowhere> | 2014-07-06 19:02:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-06 19:02:33 +0200 |
commit | 1d55547adf37f94be3bec973b59067c474e9d439 (patch) | |
tree | 8b75de0e8248ae6b1d3fad8a0869e42e4c4f5f82 /stream/cache.c | |
parent | de288762222beb1e20883f5d2c890ff7460ba318 (diff) | |
download | mpv-1d55547adf37f94be3bec973b59067c474e9d439.tar.bz2 mpv-1d55547adf37f94be3bec973b59067c474e9d439.tar.xz |
stream: remove now unused STREAM_CTRL_GET_START_TIME
demux_disc.c takes care of this now.
Diffstat (limited to 'stream/cache.c')
-rw-r--r-- | stream/cache.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/stream/cache.c b/stream/cache.c index f96cdef0e7..91662cec47 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -110,7 +110,6 @@ struct priv { // Cached STREAM_CTRLs double stream_time_length; - double stream_start_time; int64_t stream_size; unsigned int stream_num_chapters; int stream_cache_idle; @@ -377,9 +376,6 @@ static void update_cached_controls(struct priv *s) s->stream_time_length = 0; if (stream_control(s->stream, STREAM_CTRL_GET_TIME_LENGTH, &d) == STREAM_OK) s->stream_time_length = d; - s->stream_start_time = MP_NOPTS_VALUE; - if (stream_control(s->stream, STREAM_CTRL_GET_START_TIME, &d) == STREAM_OK) - s->stream_start_time = d; s->stream_num_chapters = 0; if (stream_control(s->stream, STREAM_CTRL_GET_NUM_CHAPTERS, &ui) == STREAM_OK) s->stream_num_chapters = ui; @@ -414,11 +410,6 @@ static int cache_get_cached_control(stream_t *cache, int cmd, void *arg) case STREAM_CTRL_GET_TIME_LENGTH: *(double *)arg = s->stream_time_length; return s->stream_time_length ? STREAM_OK : STREAM_UNSUPPORTED; - case STREAM_CTRL_GET_START_TIME: - if (s->stream_start_time == MP_NOPTS_VALUE) - return STREAM_UNSUPPORTED; - *(double *)arg = s->stream_start_time; - return STREAM_OK; case STREAM_CTRL_GET_SIZE: if (s->stream_size < 0) return STREAM_UNSUPPORTED; |