Commit 735dd2a5 authored by Simon Morlat's avatar Simon Morlat
Browse files

change priorities of audio & video threads for ios.

parent 98198b49
......@@ -146,7 +146,11 @@ MSTickerPrio __ms_get_default_prio(bool_t is_video){
return MS_TICKER_PRIO_REALTIME;
ms_error("Undefined priority %s", penv);
}
#ifdef __linux
return MS_TICKER_PRIO_REALTIME;
#else
return MS_TICKER_PRIO_HIGH;
#endif
}
RtpSession * create_duplex_rtpsession( int locport, bool_t ipv6){
......
......@@ -467,6 +467,9 @@ int video_stream_start (VideoStream *stream, RtpProfile *profile, const char *re
/* create the ticker */
stream->ticker = ms_ticker_new();
ms_ticker_set_name(stream->ticker,"Video MSTicker");
#ifdef __ios
ms_ticker_set_priority(stream->ticker,MS_TICKER_PRIO_HIGH);
#endif
/* attach the graphs */
if (stream->source)
ms_ticker_attach (stream->ticker, stream->source);
......
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