After my last cvs up of several days ago, I can no longer make minidlna. I'm getting the following errors:
metadata.c: In function ‘GetVideoMetadata’:
metadata.c:676: error: ‘AVMEDIA_TYPE_AUDIO’ undeclared (first use in this function)
metadata.c:676: error: (Each undeclared identifier is reported only once
metadata.c:676: error: for each function it appears in.)
metadata.c:683: error: ‘AVMEDIA_TYPE_VIDEO’ undeclared (first use in this function)
Where is AVMEDIA_TYPE_AUDIO supposed to be defined?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, I'm going to guess that this problem compiling metadata.c has to do with Ubuntu's version of libavformat-dev. Anyway, adding the following to minidlna's metadata.h provides a work-around for this problem:
I see, I didn't realize that CODEC_TYPE_* was an enum. So compiling was broken with old ffmpeg versions due to the invalid test. I just checked in a fix for that. Thanks for reporting.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After my last cvs up of several days ago, I can no longer make minidlna. I'm getting the following errors:
Where is AVMEDIA_TYPE_AUDIO supposed to be defined?
Ok, I'm going to guess that this problem compiling metadata.c has to do with Ubuntu's version of libavformat-dev. Anyway, adding the following to minidlna's metadata.h provides a work-around for this problem:
That was taken from http://www.ffmpeg.org/doxygen/trunk/avutil_8h-source.html
I see, I didn't realize that CODEC_TYPE_* was an enum. So compiling was broken with old ffmpeg versions due to the invalid test. I just checked in a fix for that. Thanks for reporting.