mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use send_min_interval for stream control. 2.0.183
This commit is contained in:
parent
c02da33c11
commit
ae37fa8f3e
14 changed files with 133 additions and 26 deletions
|
@ -257,6 +257,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
|
||||
u_int32_t pre_timestamp = 0;
|
||||
int64_t pre_now = srs_utils_time_ms();
|
||||
for (;;) {
|
||||
int size;
|
||||
char type;
|
||||
|
@ -268,11 +269,12 @@ int main(int argc, char** argv)
|
|||
goto rtmp_destroy;
|
||||
}
|
||||
|
||||
if (srs_human_print_rtmp_packet2(type, timestamp, data, size, pre_timestamp) != 0) {
|
||||
if (srs_human_print_rtmp_packet3(type, timestamp, data, size, pre_timestamp, pre_now) != 0) {
|
||||
srs_human_trace("print rtmp packet failed.");
|
||||
goto rtmp_destroy;
|
||||
}
|
||||
pre_timestamp = timestamp;
|
||||
pre_now = srs_utils_time_ms();
|
||||
|
||||
// we only write some types of messages to flv file.
|
||||
int is_flv_msg = type == SRS_RTMP_TYPE_AUDIO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue