Hi,

On Mon, Aug 1, 2011 at 9:27 AM, Luca Barbato <[email protected]> wrote:
> From: Zohar Kelrich <[email protected]>
>
> 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 <[email protected]>
> Signed-off-by: Luca Barbato <[email protected]>
> ---
>  libavformat/mpegts.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index e9b984d..410507d 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");

OK.

Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to