mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
[unit-tests] fix sps-related race in the sndfile test.
This commit is contained in:
parent
970e32e574
commit
a83b7db5a7
@ -425,6 +425,7 @@ FST_CORE_BEGIN("test_formats_and_muxing")
|
|||||||
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
||||||
int sps_total = 10000;
|
int sps_total = 10000;
|
||||||
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
||||||
|
switch_sleep(1000000); // softtimer_runtime sets sps every second
|
||||||
|
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
|
|
||||||
@ -468,6 +469,7 @@ FST_CORE_BEGIN("test_formats_and_muxing")
|
|||||||
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
||||||
int sps_total = 10000;
|
int sps_total = 10000;
|
||||||
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
||||||
|
switch_sleep(1000000); // softtimer_runtime sets sps every second
|
||||||
|
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
|
|
||||||
@ -509,6 +511,7 @@ FST_CORE_BEGIN("test_formats_and_muxing")
|
|||||||
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
||||||
int sps_total = 10000;
|
int sps_total = 10000;
|
||||||
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
||||||
|
switch_sleep(1000000); // softtimer_runtime sets sps every second
|
||||||
|
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
|
|
||||||
@ -552,6 +555,7 @@ FST_CORE_BEGIN("test_formats_and_muxing")
|
|||||||
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
|
||||||
int sps_total = 10000;
|
int sps_total = 10000;
|
||||||
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
switch_core_session_ctl(SCSC_SPS, &sps_total);
|
||||||
|
switch_sleep(1000000); // softtimer_runtime sets sps every second
|
||||||
|
|
||||||
SWITCH_STANDARD_STREAM(stream);
|
SWITCH_STANDARD_STREAM(stream);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user