generic-pc: improve decoder info messages

This commit is contained in:
Stefan Seyfried
2013-06-01 15:41:32 +02:00
parent 619751eaf0
commit 94830cf33f
2 changed files with 7 additions and 4 deletions

View File

@@ -445,7 +445,7 @@ void cVideo::run(void)
c = avfc->streams[0]->codec;
codec = avcodec_find_decoder(c->codec_id);
if (!codec) {
lt_info("%s: Codec not found\n", __func__);
lt_info("%s: Codec for %s not found\n", __func__, avcodec_get_name(c->codec_id));
goto out;
}
if (avcodec_open2(c, codec, NULL) < 0) {
@@ -458,6 +458,7 @@ void cVideo::run(void)
lt_info("%s: Could not allocate video frame\n", __func__);
goto out2;
}
lt_info("decoding %s\n", avcodec_get_name(c->codec_id));
while (thread_running) {
if (av_read_frame(avfc, &avpkt) < 0) {
if (warn_r - time(NULL) > 4) {