Skip to content

Commit

Permalink
common: Print fix and add comments to questionable place in code
Browse files Browse the repository at this point in the history
  • Loading branch information
jrsnen committed Jul 30, 2021
1 parent aeaf942 commit ae0f2e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/media_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ uvgrtp::media_stream::~media_stream()
{
pkt_dispatcher_->stop();

// TODO: I would take a close look at what happens when pull_frame is called
// and media stream is destroyed. Note that this is the only way to stop pull
// frame without waiting

if (ctx_config_.flags & RCE_RTCP)
rtcp_->stop();

Expand Down
2 changes: 1 addition & 1 deletion src/socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ rtp_error_t uvgrtp::socket::bind(short family, unsigned host, short port)
#else
fprintf(stderr, "%s\n", strerror(errno));
#endif
LOG_ERROR("Biding to port %u failed!", port);
LOG_ERROR("Binding to port %u failed!", port);
return RTP_BIND_ERROR;
}

Expand Down

0 comments on commit ae0f2e1

Please sign in to comment.