mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
raspi/avdec: allow setting audio out via RASPI_AUDIO variable
This commit is contained in:
@@ -179,7 +179,10 @@ AVDec::AVDec()
|
|||||||
/* TODO: this is hard coded for h264 for now */
|
/* TODO: this is hard coded for h264 for now */
|
||||||
codecs.vcodec.vcodectype = OMX_VIDEO_CodingAVC;
|
codecs.vcodec.vcodectype = OMX_VIDEO_CodingAVC;
|
||||||
/* TODO: hard coded audio output HDMI */
|
/* TODO: hard coded audio output HDMI */
|
||||||
vcodec_omx_init(&codecs.vcodec, &omxpipe, (char *)"hdmi");
|
char *output = getenv("RASPI_AUDIO");
|
||||||
|
if (! output)
|
||||||
|
output = (char *)"hdmi";
|
||||||
|
vcodec_omx_init(&codecs.vcodec, &omxpipe, output);
|
||||||
acodec_omx_init(&codecs.acodec, &omxpipe);
|
acodec_omx_init(&codecs.acodec, &omxpipe);
|
||||||
|
|
||||||
lt_info("AVDec created\n");
|
lt_info("AVDec created\n");
|
||||||
|
Reference in New Issue
Block a user