145 |
// if nothing was done during this iteration (eg no streambuffer |
// if nothing was done during this iteration (eg no streambuffer |
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; |
150 |
|
for (int i = Streams - 1; i >= 0; i--) { |
151 |
|
if (pStreams[i]->GetState() == Stream::state_active) act_streams++; |
152 |
|
} |
153 |
|
ActiveStreamCount=act_streams; |
154 |
|
|
155 |
} |
} |
156 |
|
|
157 |
return EXIT_FAILURE; |
return EXIT_FAILURE; |