diff mbox

[FFmpeg-devel,3/3] lavf/matroskadec: log when falling back to generic seeking

Message ID 20171208124536.44946-3-rodger.combs@gmail.com
State Superseded
Headers show

Commit Message

Rodger Combs Dec. 8, 2017, 12:45 p.m. UTC
---
 libavformat/matroskadec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Carl Eugen Hoyos Dec. 8, 2017, 4:24 p.m. UTC | #1
2017-12-08 13:45 GMT+01:00 Rodger Combs <rodger.combs@gmail.com>:
> ---
>  libavformat/matroskadec.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
> index 2d23f2ee84..f023e94e70 100644
> --- a/libavformat/matroskadec.c
> +++ b/libavformat/matroskadec.c
> @@ -3567,6 +3567,7 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
>      ff_update_cur_dts(s, st, st->index_entries[index].timestamp);
>      return 0;
>  err:
> +    av_log(s, AV_LOG_VERBOSE, "Failed to seek using index; falling back to generic seek");

Sounds like a warning to me, no?

Carl Eugen
diff mbox

Patch

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2d23f2ee84..f023e94e70 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3567,6 +3567,7 @@  static int matroska_read_seek(AVFormatContext *s, int stream_index,
     ff_update_cur_dts(s, st, st->index_entries[index].timestamp);
     return 0;
 err:
+    av_log(s, AV_LOG_VERBOSE, "Failed to seek using index; falling back to generic seek");
     // slightly hackish but allows proper fallback to
     // the generic seeking code.
     matroska_clear_queue(matroska);