Skip to content

Commit 26f5bd6

Browse files
committed
small fixes
- vrxtx: destroy the pthread_mutex_t - for `-x omt:help` or sdp:help do not print "Requested RX/TX cannot be created (missing library?)"
1 parent 66fa881 commit 26f5bd6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,9 +1482,10 @@ int main(int argc, char *argv[])
14821482
video_rxtx::create(opt.video_protocol, &opt.video, &opt.common);
14831483
if (!uv.state_video_rxtx) {
14841484
int rc = EXIT_SUCCESS;
1485-
if (strcmp(opt.video_protocol, "help") != 0) {
1485+
if (strcmp(opt.video_protocol, "help") != 0 &&
1486+
strcmp(opt.video.protocol_opts, "help") != 0) {
14861487
error_msg("Requested RX/TX cannot be created "
1487-
"(missing library?)\n");
1488+
"(missing library?)\n");
14881489
rc = EXIT_FAILURE;
14891490
}
14901491
exit_uv(rc);

src/video_rxtx.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ video_rxtx::~video_rxtx() noexcept
128128
compress_done(m_compression);
129129
module_done(&m_receiver_mod);
130130
module_done(&m_sender_mod);
131+
132+
pthread_mutex_destroy(&m_lock);
131133
}
132134

133135
void

0 commit comments

Comments
 (0)