Correct typos for embedded platforms

This commit is contained in:
Iwan Timmer 2017-05-31 18:03:21 +00:00
parent 51d2fe2a35
commit 32a26d19f9
3 changed files with 3 additions and 2 deletions

View File

@ -123,6 +123,7 @@ static int omx_renderer_init(int audioConfiguration, POPUS_MULTISTREAM_CONFIGURA
} }
OMX_CONFIG_BRCMAUDIODESTINATIONTYPE arDest; OMX_CONFIG_BRCMAUDIODESTINATIONTYPE arDest;
char* audio_device = (char*) context;
if (audio_device == NULL) if (audio_device == NULL)
audio_device = "hdmi"; audio_device = "hdmi";

View File

@ -115,7 +115,7 @@ static int frame_handle(int pipefd) {
return LOOP_OK; return LOOP_OK;
} }
int void decoder_renderer_setup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags) { int decoder_renderer_setup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags) {
if (videoFormat != VIDEO_FORMAT_H264) { if (videoFormat != VIDEO_FORMAT_H264) {
fprintf(stderr, "Video format not supported\n"); fprintf(stderr, "Video format not supported\n");
return -1; return -1;

View File

@ -53,7 +53,7 @@ static unsigned char *dest;
static int port_settings_changed; static int port_settings_changed;
static int first_packet; static int first_packet;
int void decoder_renderer_setup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags) { int decoder_renderer_setup(int videoFormat, int width, int height, int redrawRate, void* context, int drFlags) {
if (videoFormat != VIDEO_FORMAT_H264) { if (videoFormat != VIDEO_FORMAT_H264) {
fprintf(stderr, "Video format not supported\n"); fprintf(stderr, "Video format not supported\n");
return -1; return -1;