mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-16 05:41:08 +08:00
fftools/ffmpeg_demux: log when the demuxer thread terminates
Similar to what is done for muxing, may be useful for debugging.
This commit is contained in:
@@ -272,6 +272,12 @@ static void *input_thread(void *arg)
|
|||||||
/* fallthrough to the error path */
|
/* fallthrough to the error path */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret == AVERROR_EOF)
|
||||||
|
av_log(NULL, AV_LOG_VERBOSE, "EOF in input file %d\n", f->index);
|
||||||
|
else
|
||||||
|
av_log(NULL, AV_LOG_ERROR, "Error demuxing input file %d: %s\n",
|
||||||
|
f->index, av_err2str(ret));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -333,6 +339,8 @@ finish:
|
|||||||
|
|
||||||
av_packet_free(&pkt);
|
av_packet_free(&pkt);
|
||||||
|
|
||||||
|
av_log(NULL, AV_LOG_VERBOSE, "Terminating demuxer thread %d\n", f->index);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user