summaryrefslogtreecommitdiffstats
path: root/demux/demux_subreader.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-21 19:28:18 +0200
committerwm4 <wm4@nowhere>2014-07-21 19:29:58 +0200
commitd1bb1bf8af7ef483ce745459e15693e87671618d (patch)
treeb4fc9bd1e56016d4e1ebba8ae356fe3586ad0859 /demux/demux_subreader.c
parent4b4bd9e5f733f47e9c8c68099ba65b446486da81 (diff)
downloadmpv-d1bb1bf8af7ef483ce745459e15693e87671618d.tar.bz2
mpv-d1bb1bf8af7ef483ce745459e15693e87671618d.tar.xz
demux: fix timestamp type for seek calls
mpv/mplayer2/MPlayer use double for timestamps, but the demuxer API used float.
Diffstat (limited to 'demux/demux_subreader.c')
-rw-r--r--demux/demux_subreader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux_subreader.c b/demux/demux_subreader.c
index 0fb23c22d3..f6454aaf2e 100644
--- a/demux/demux_subreader.c
+++ b/demux/demux_subreader.c
@@ -119,7 +119,7 @@ static double demux_packet_list_duration(struct demux_packet **pkts, int num_pkt
}
static void demux_packet_list_seek(struct demux_packet **pkts, int num_pkts,
- int *current, float rel_seek_secs, int flags)
+ int *current, double rel_seek_secs, int flags)
{
double ref_time = 0;
if (*current >= 0 && *current < num_pkts) {
@@ -803,7 +803,7 @@ static int d_fill_buffer(struct demuxer *demuxer)
return demux_add_packet(p->sh, dp);
}
-static void d_seek(struct demuxer *demuxer, float secs, int flags)
+static void d_seek(struct demuxer *demuxer, double secs, int flags)
{
struct priv *p = demuxer->priv;
demux_packet_list_seek(p->pkts, p->num_pkts, &p->current, secs, flags);