146 |
// filled with data) then sleep for 50ms |
// filled with data) then sleep for 50ms |
147 |
if (IsIdle) usleep(30000); |
if (IsIdle) usleep(30000); |
148 |
|
|
149 |
int act_streams=0; |
int streamsInUsage = 0; |
150 |
for (int i = Streams - 1; i >= 0; i--) { |
for (int i = Streams - 1; i >= 0; i--) { |
151 |
if (pStreams[i]->GetState() == Stream::state_active) act_streams++; |
if (pStreams[i]->GetState() != Stream::state_unused) streamsInUsage++; |
152 |
} |
} |
153 |
ActiveStreamCount=act_streams; |
ActiveStreamCount = streamsInUsage; |
154 |
|
if (streamsInUsage > ActiveStreamCountMax) ActiveStreamCountMax = streamsInUsage; |
155 |
} |
} |
156 |
|
|
157 |
return EXIT_FAILURE; |
return EXIT_FAILURE; |