Commit 50e4ef0d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Some changes to fix the app validation with the Windows Store App Certification Kit.

parent 4ef88b04
......@@ -153,7 +153,7 @@ MSFactory *ms_factory_get_fallback(void){
void ms_factory_init(MSFactory *obj){
int i;
long num_cpu=1;
char *debug_log_enabled;
char *debug_log_enabled = NULL;
char *tags;
#ifdef _WIN32
SYSTEM_INFO sysinfo;
......@@ -162,7 +162,9 @@ void ms_factory_init(MSFactory *obj){
#if defined(ENABLE_NLS)
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
#endif
#ifndef MS2_WINDOWS_UNIVERSAL
debug_log_enabled=getenv("MEDIASTREAMER_DEBUG");
#endif
if (debug_log_enabled!=NULL && (strcmp("1",debug_log_enabled)==0) ){
ortp_set_log_level_mask(ORTP_MESSAGE|ORTP_WARNING|ORTP_ERROR|ORTP_FATAL);
}
......@@ -497,8 +499,12 @@ int ms_factory_load_plugins(MSFactory *factory, const char *dir){
#endif
char szPluginFile[1024];
BOOL fFinished = FALSE;
const char *tmp=getenv("DEBUG");
BOOL debug=(tmp!=NULL && atoi(tmp)==1);
const char *tmp = NULL;
BOOL debug = FALSE;
#ifndef MS2_WINDOWS_UNIVERSAL
tmp = getenv("DEBUG");
#endif
debug = (tmp != NULL && atoi(tmp) == 1);
snprintf(szDirPath, sizeof(szDirPath), "%s", dir);
......
......@@ -80,7 +80,10 @@ static void send_stun_packet(RtpSession *s)
static void sender_init(MSFilter * f)
{
SenderData *d = (SenderData *)ms_new0(SenderData, 1);
const char *tmp=getenv("MS2_RTP_FIXED_DELAY");
const char *tmp = NULL;
#ifndef MS2_WINDOWS_UNIVERSAL
tmp = getenv("MS2_RTP_FIXED_DELAY");
#endif
d->session = NULL;
d->tsoff = 0;
......
......@@ -170,7 +170,10 @@ MSWebCamDesc *ms_mire_webcam_desc_get(void){
}
static void mire_detect(MSWebCamManager *obj){
char *debug=getenv("DEBUG");
char *debug = NULL;
#ifndef MS2_WINDOWS_UNIVERSAL
debug = getenv("DEBUG");
#endif
if (debug && atoi(debug)==1){
MSWebCam *cam=ms_web_cam_new(&ms_mire_webcam_desc);
ms_web_cam_manager_add_cam(obj,cam);
......
......@@ -75,11 +75,13 @@ static int _ms_ticker_prio_from_env(const char *penv, MSTickerPrio *prio) {
}
MSTickerPrio __ms_get_default_prio(bool_t is_video) {
const char *penv;
const char *penv = NULL;
MSTickerPrio prio;
if (is_video) {
#ifndef MS2_WINDOWS_UNIVERSAL
penv = getenv("MS_VIDEO_PRIO");
#endif
if(penv && _ms_ticker_prio_from_env(penv, &prio) == 0) return prio;
#ifdef __ios
......@@ -88,7 +90,9 @@ MSTickerPrio __ms_get_default_prio(bool_t is_video) {
return MS_TICKER_PRIO_NORMAL;
#endif
} else {
#ifndef MS2_WINDOWS_UNIVERSAL
penv = getenv("MS_AUDIO_PRIO");
#endif
if (penv && _ms_ticker_prio_from_env(penv, &prio) == 0) return prio;
#ifdef __linux
......
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