RE: preventing aac playback
"Jyotsana Rathore" <[email protected]>
| Newsgroups | gmane.comp.multimedia.helix.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi John, In that case, you can apply your patch in CAACFileFormat::HXCreateInstance() function in datatype\aac\fileformat\aacff.cpp. I recommend adding and using a preference e.g. "DisableAACSupport" Thanks, Jyotsana _____ From: John Stirling [mailto:[email protected]] Sent: Wednesday, September 10, 2008 12:51 AM To: Jyotsana Rathore Cc: [email protected] Subject: Re: [Helix-client-dev] preventing aac playback Hi Jyotsana, We ideally want a way of doing this dynamically rather than at compile time. Can anyone point me at the relevant bit of code ? John Jyotsana Rathore wrote: Hi John, One way to disable the AAC support would be to remove the two macros, by adding project.RemoveDefines('HELIX_FEATURE_AUDIO_CODEC_RAAC') project.RemoveDefines('HELIX_FEATURE_AUDIO_CODEC_AAC') in the profile file and rebuilding. Then HXR_NO_RENDERER error will be returned. Thanks, Jyotsana _____ From: [email protected] [mailto:[email protected]] On Behalf Of John Stirling Sent: Monday, September 08, 2008 1:25 AM To: [email protected] Subject: Re: [Helix-client-dev] preventing aac playback Any response to this ? John Stirling wrote: We've been applying this patch in order to selectively disable playback of AAC content. This does prevent AAC content from playing. It currently just starts the stream, doesn't play anything and sticks there without reporting any errors to the TLC. We'd like it to behave as if the raac.so plugin didn't exist (HXR_NO_RENDERER). I've tried a few things, but can't seem to find the correct thing to make this work. Can someone advise on how to do this. John _____ ? datatype/aac/codec/fixpt/decoder/Makefile ? datatype/aac/codec/fixpt/decoder/Umakefil.upp ? datatype/aac/codec/fixpt/decoder/armv4l-rel ? datatype/aac/codec/fixpt/decoder/rel ? datatype/aac/codec/fixpt/decoder/hxwrap/Makefile ? datatype/aac/codec/fixpt/decoder/hxwrap/Umakefil.upp ? datatype/aac/codec/fixpt/decoder/hxwrap/armv4l-rel ? datatype/aac/codec/fixpt/decoder/hxwrap/raac.exp ? datatype/aac/codec/fixpt/decoder/hxwrap/rel ? datatype/aac/codec/fixpt/decoder/hxwrap/rlink ? datatype/aac/codec/fixpt/decoder/hxwrap/umake_dll.mak ? datatype/aac/codec/fixpt/decoder/hxwrap/umake_dll.upp ? datatype/aac/codec/fixpt/decoder/hxwrap/umake_lib.mak ? datatype/aac/codec/fixpt/decoder/hxwrap/umake_lib.upp ? datatype/aac/fileformat/Makefile ? datatype/aac/fileformat/Umakefil.upp ? datatype/aac/fileformat/aacff.exp ? datatype/aac/fileformat/aacffdll.mak ? datatype/aac/fileformat/aacffdll.upp ? datatype/aac/fileformat/armv4l-rel ? datatype/aac/fileformat/rel ? datatype/aac/fileformat/rlink ? datatype/aac/parser/Makefile ? datatype/aac/parser/Umakefil.upp ? datatype/aac/parser/armv4l-rel ? datatype/aac/parser/rel ? datatype/aac/payload/Makefile ? datatype/aac/payload/Umakefil.upp ? datatype/aac/payload/armv4l-rel ? datatype/aac/payload/rel Index: datatype/aac/codec/fixpt/decoder/hxwrap/aacdecdll.cpp =================================================================== RCS file: /nexus/proj/InternetRadio/cvs/helix_cayenne_20070820/datatype/aac/codec/fixp t/decoder/hxwrap/aacdecdll.cpp,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 aacdecdll.cpp --- datatype/aac/codec/fixpt/decoder/hxwrap/aacdecdll.cpp 1 Jul 2008 15:35:05 -0000 1.1.1.1 +++ datatype/aac/codec/fixpt/decoder/hxwrap/aacdecdll.cpp 2 Sep 2008 10:46:15 -0000 @@ -46,6 +46,10 @@ #include "aacdecdll.h" #include "aacconstants.h" +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> + const char* const CAACDec::m_pszCodecName = "RealAudio 10"; CAACDec::CAACDec() @@ -80,6 +84,15 @@ // STDMETHODIMP CAACDec::QueryInterface(REFIID riid, void** ppvObj) { + /* This file controls whether we are allowed to use the AAC plugin */ + #define ENABLE_FILE "/tmp/enable_plugin_aac" + + /* Only allow AAC plugin to be used if there if file + * /tmp/enable_plugin_aac exists */ + struct stat s; + if (stat(ENABLE_FILE, &s) == 0) + { + printf("HELIX: AAC Plugin Manually Enabled\n"); if (IsEqualIID(riid, IID_IHXAudioDecoder)) { AddRef(); @@ -92,6 +105,11 @@ *ppvObj = this; return HXR_OK; } + } + else + { + printf("HELIX: AAC Plugin Manually Disabled\n"); + } *ppvObj = NULL; _____ _______________________________________________ Helix-client-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev _______________________________________________ Helix-client-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev