aboutsummaryrefslogtreecommitdiffhomepage
path: root/demux
diff options
context:
space:
mode:
authorGravatar Aman Gupta <aman@tmm1.net>2015-12-21 13:19:57 -0800
committerGravatar wm4 <wm4@nowhere>2015-12-21 22:29:38 +0100
commit5360baa49e630048b2454504c9a5d2ffe4e3651f (patch)
tree3be0dff474d670f4349f3ae642bea662e460680f /demux
parentfccc3d3894c839f677a5955090584ec3b763ca1a (diff)
demux_lavf: make trace output for mp_seek easier to digest
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'demux')
-rw-r--r--demux/demux_lavf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index ea66ded09b..6e9560ba56 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -208,7 +208,10 @@ static int64_t mp_seek(void *opaque, int64_t pos, int whence)
struct demuxer *demuxer = opaque;
struct stream *stream = demuxer->stream;
int64_t current_pos;
- MP_TRACE(demuxer, "mp_seek(%p, %"PRId64", %d)\n", stream, pos, whence);
+ MP_TRACE(demuxer, "mp_seek(%p, %"PRId64", %s)\n", stream, pos,
+ whence == SEEK_END ? "end" :
+ whence == SEEK_CUR ? "cur" :
+ whence == SEEK_SET ? "set" : "size");
if (whence == SEEK_END || whence == AVSEEK_SIZE) {
int64_t end = stream_get_size(stream);
if (end < 0)