Skip to content

Commit

Permalink
updated logging function
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Apr 14, 2024
1 parent a4b6a43 commit 4dc3aa0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ bool app_decoder_or_embedded_present(app_t *app) {
#endif

static void libs_init(app_t *app, int argc, char *argv[]) {

SS4S_SetLoggingFunction(commons_ss4s_logf);
int errno;
if ((errno = SS4S_ModulesList(&app->ss4s.modules, &app->os_info)) != 0) {
commons_log_error("SS4S", "Can't load modules list: %s", strerror(errno));
Expand Down Expand Up @@ -318,11 +318,10 @@ static void libs_init(app_t *app, int argc, char *argv[]) {
SS4S_Config ss4s_config = {
.audioDriver = SS4S_ModuleInfoGetId(app->ss4s.selection.audio_module),
.videoDriver = SS4S_ModuleInfoGetId(app->ss4s.selection.video_module),
.loggingFunction = commons_ss4s_logf,
};
SS4S_Init(argc, argv, &ss4s_config);

SS4S_GetAudioCapabilities(&app->ss4s.audio_cap);
SS4S_GetAudioCapabilitiesByCodecs(&app->ss4s.audio_cap, SS4S_AUDIO_PCM_S16LE | SS4S_AUDIO_OPUS);
SS4S_GetVideoCapabilities(&app->ss4s.video_cap);


Expand Down

0 comments on commit 4dc3aa0

Please sign in to comment.