diff options
author | Zohar Kelrich <lumimies@gmail.com> | 2011-07-24 11:13:50 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-08-02 02:43:21 +0200 |
commit | be9c00615b5c2cb858b9905854726ebe578c007b (patch) | |
tree | ca77ca298682e80707337fccacfca7a8ca517b17 /libavformat/mpegts.c | |
parent | 5038f9b2684c4be1d9543e34e76282c6935815ba (diff) | |
download | ffmpeg-be9c00615b5c2cb858b9905854726ebe578c007b.tar.gz |
mpegts: Silence "can't seek" warning on unseekable
Do not try to seek when we already know we are not allowed to.
Silences warning that always happens when streaming.
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index e9b984dc11..410507db6d 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1488,7 +1488,7 @@ static int mpegts_read_header(AVFormatContext *s, /* normal demux */ /* first do a scaning to get all the services */ - if (avio_seek(pb, pos, SEEK_SET) < 0) + if (pb->seekable && avio_seek(pb, pos, SEEK_SET) < 0) av_log(s, AV_LOG_ERROR, "Unable to seek back to the start\n"); mpegts_open_section_filter(ts, SDT_PID, sdt_cb, ts, 1); |