Control: tags -1 patch
Attached. Basically `lav_is_thumbnail_stream` need to be call on all
possible stream, even after a video stream was found.
Description: Handle Cover Art at end of file
Author: Mathieu Malaterre <[email protected]>
Bug-Debian: https://bugs.debian.org/781811
--- minidlna-1.1.4+dfsg.orig/metadata.c
+++ minidlna-1.1.4+dfsg/metadata.c
@@ -697,13 +697,16 @@ GetVideoMetadata(const char *path, char
ac = ctx->streams[audio_stream]->codec;
continue;
}
- else if( video_stream == -1 &&
+ else if( /*video_stream == -1 &&*/
!lav_is_thumbnail_stream(ctx->streams[i], &m.thumb_data, &m.thumb_size) &&
ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO )
{
+ if( video_stream == -1 )
+{
video_stream = i;
vc = ctx->streams[video_stream]->codec;
continue;
+}
}
}
path_cpy = strdup(path);