Commit efcf7560 authored by Ghislain MARY's avatar Ghislain MARY

Do not use getenv() for Windows Universal App.

parent 2fcbd077
......@@ -105,7 +105,7 @@ static void ms_opus_enc_init(MSFilter *f) {
static void ms_opus_enc_preprocess(MSFilter *f) {
int error;
int opusComplexity = -1;
const char *env;
const char *env = NULL;
OpusEncData *d = (OpusEncData *)f->data;
/* create the encoder */
......@@ -116,7 +116,9 @@ static void ms_opus_enc_preprocess(MSFilter *f) {
}
#ifndef MS2_WINDOWS_UNIVERSAL
env = getenv("MS2_OPUS_COMPLEXITY");
#endif
if (env != NULL) {
opusComplexity = atoi(env);
if (opusComplexity < -1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment