mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, rename the human functions to prefixed with srs_human_
This commit is contained in:
parent
30e7c38a48
commit
b3bb2cdf2b
12 changed files with 190 additions and 190 deletions
|
@ -44,26 +44,26 @@ int main(int argc, char** argv)
|
|||
exit(-1);
|
||||
}
|
||||
|
||||
srs_lib_trace("rtmp url: %s", argv[1]);
|
||||
srs_human_trace("rtmp url: %s", argv[1]);
|
||||
srs_rtmp_t rtmp = srs_rtmp_create(argv[1]);
|
||||
|
||||
if (srs_simple_handshake(rtmp) != 0) {
|
||||
srs_lib_trace("simple handshake failed.");
|
||||
srs_human_trace("simple handshake failed.");
|
||||
goto rtmp_destroy;
|
||||
}
|
||||
srs_lib_trace("simple handshake success");
|
||||
srs_human_trace("simple handshake success");
|
||||
|
||||
if (srs_connect_app(rtmp) != 0) {
|
||||
srs_lib_trace("connect vhost/app failed.");
|
||||
srs_human_trace("connect vhost/app failed.");
|
||||
goto rtmp_destroy;
|
||||
}
|
||||
srs_lib_trace("connect vhost/app success");
|
||||
srs_human_trace("connect vhost/app success");
|
||||
|
||||
if (srs_play_stream(rtmp) != 0) {
|
||||
srs_lib_trace("play stream failed.");
|
||||
srs_human_trace("play stream failed.");
|
||||
goto rtmp_destroy;
|
||||
}
|
||||
srs_lib_trace("play stream success");
|
||||
srs_human_trace("play stream success");
|
||||
|
||||
for (;;) {
|
||||
int size;
|
||||
|
@ -75,7 +75,7 @@ int main(int argc, char** argv)
|
|||
goto rtmp_destroy;
|
||||
}
|
||||
|
||||
if (srs_print_rtmp_packet(type, timestamp, data, size) != 0) {
|
||||
if (srs_human_print_rtmp_packet(type, timestamp, data, size) != 0) {
|
||||
goto rtmp_destroy;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue