[FFmpeg-cvslog] fftools/ffmpeg_demux: stop logging to demuxer context

Anton Khirnov git at videolan.org
Mon May 15 15:16:51 EEST 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun May  7 19:11:15 2023 +0200| [de6d60117e7ac3a3707cd713e269fdf39775cfa1] | committer: Anton Khirnov

fftools/ffmpeg_demux: stop logging to demuxer context

Only the demuxer itself should do that.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de6d60117e7ac3a3707cd713e269fdf39775cfa1
---

 fftools/ffmpeg_demux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 58d8fa75e5..0a37cc7c25 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -641,14 +641,14 @@ static void *input_thread(void *arg)
         if (flags && ret == AVERROR(EAGAIN)) {
             flags = 0;
             ret = av_thread_message_queue_send(d->in_thread_queue, &msg, flags);
-            av_log(f->ctx, AV_LOG_WARNING,
+            av_log(f, AV_LOG_WARNING,
                    "Thread message queue blocking; consider raising the "
                    "thread_queue_size option (current value: %d)\n",
                    d->thread_queue_size);
         }
         if (ret < 0) {
             if (ret != AVERROR_EOF)
-                av_log(f->ctx, AV_LOG_ERROR,
+                av_log(f, AV_LOG_ERROR,
                        "Unable to send packet to main thread: %s\n",
                        av_err2str(ret));
             av_packet_free(&msg.pkt);



More information about the ffmpeg-cvslog mailing list