mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 07:10:11 +01:00
2015-03-09 Fred Gleason <fredg@paravelsystems.com>
* Added a 'STATIONS.HAVE_MP4_DECODE' field to the database. * Incremented the database version to 243. * Added a 'Capability::HaveMp4Decode' value to the 'RDStation::Capability' enumeration in 'lib/rdstation.cpp' and 'lib/rdstation.h'.
This commit is contained in:
16
cae/cae.cpp
16
cae/cae.cpp
@@ -1991,6 +1991,11 @@ void MainObject::ProbeCaps(RDStation *station)
|
||||
station->setHaveCapability(RDStation::HaveTwoLame,LoadTwoLame());
|
||||
station->setHaveCapability(RDStation::HaveMpg321,LoadMad());
|
||||
|
||||
//
|
||||
// MP4 Decoder
|
||||
//
|
||||
station->setHaveCapability(RDStation::HaveMp4Decode,CheckMp4Decode());
|
||||
|
||||
#ifdef HPI
|
||||
station->setDriverVersion(RDStation::Hpi,hpiVersion());
|
||||
#else
|
||||
@@ -2047,6 +2052,17 @@ bool MainObject::CheckLame()
|
||||
}
|
||||
|
||||
|
||||
bool MainObject::CheckMp4Decode()
|
||||
{
|
||||
#ifdef HAVE_MP4_LIBS
|
||||
return (dlopen("libfaad.so",RTLD_LAZY)!=NULL)&&
|
||||
(dlopen("libmp4v2.so",RTLD_LAZY)!=NULL);
|
||||
#else
|
||||
return false;
|
||||
#endif // HAVE_MP4_LIBS
|
||||
}
|
||||
|
||||
|
||||
bool MainObject::LoadTwoLame()
|
||||
{
|
||||
#ifdef HAVE_TWOLAME
|
||||
|
||||
Reference in New Issue
Block a user