mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 20:01:56 +00:00
Refine code
This commit is contained in:
parent
03105c96c2
commit
c2c35a7330
2 changed files with 2 additions and 3 deletions
|
@ -541,7 +541,7 @@ srs_error_t SrsUdpMuxListener::cycle()
|
||||||
if (err != srs_success) {
|
if (err != srs_success) {
|
||||||
// remux udp never return
|
// remux udp never return
|
||||||
srs_warn("udp packet handler error:%s", srs_error_desc(err).c_str());
|
srs_warn("udp packet handler error:%s", srs_error_desc(err).c_str());
|
||||||
srs_error_reset(err);
|
srs_freep(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
pprint->elapse();
|
pprint->elapse();
|
||||||
|
|
|
@ -52,8 +52,7 @@ public:
|
||||||
// The context restore stores the context and restore it when done.
|
// The context restore stores the context and restore it when done.
|
||||||
// Usage:
|
// Usage:
|
||||||
// SrsContextRestore(_srs_context->get_id());
|
// SrsContextRestore(_srs_context->get_id());
|
||||||
#define SrsContextRestore(cid) \
|
#define SrsContextRestore(cid) impl_SrsContextRestore _context_restore_instance(cid)
|
||||||
impl_SrsContextRestore _context_restore_instance(cid)
|
|
||||||
class impl_SrsContextRestore
|
class impl_SrsContextRestore
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue