fix librtmp get bytes bug.
This commit is contained in:
parent
588de3e7b4
commit
53d2eb5e02
|
|
@ -2002,6 +2002,9 @@ int64_t srs_utils_send_bytes(srs_rtmp_t rtmp)
|
|||
{
|
||||
srs_assert(rtmp != NULL);
|
||||
Context* context = (Context*)rtmp;
|
||||
if (!context->rtmp) {
|
||||
return 0;
|
||||
}
|
||||
return context->rtmp->get_send_bytes();
|
||||
}
|
||||
|
||||
|
|
@ -2009,6 +2012,9 @@ int64_t srs_utils_recv_bytes(srs_rtmp_t rtmp)
|
|||
{
|
||||
srs_assert(rtmp != NULL);
|
||||
Context* context = (Context*)rtmp;
|
||||
if (!context->rtmp) {
|
||||
return 0;
|
||||
}
|
||||
return context->rtmp->get_recv_bytes();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user