Re: preventing aac playback
John Stirling <[email protected]>
| Newsgroups | gmane.comp.multimedia.helix.devel |
|---|---|
| Message-ID | <[email protected]> |
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/fixpt/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