diff options
author | Jirka Novak <j.novak@netsystem.cz> | 2021-04-25 14:47:59 +0200 |
---|---|---|
committer | Jirka Novak <j.novak@netsystem.cz> | 2021-04-25 14:47:59 +0200 |
commit | e91806b8e91da80fb684fc29440b1684d8155cf8 (patch) | |
tree | 2acbafa41c8e1b1a0f3484efa949861a48967d02 /ui/qt/main_window_slots.cpp | |
parent | 1408db615bac335be8cce97ddae268d17dd92181 (diff) |
RTP Player: Fix for compilation when no HAVE_LIBPCAP is defined
See comment on !2801.
Diffstat (limited to 'ui/qt/main_window_slots.cpp')
-rw-r--r-- | ui/qt/main_window_slots.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 7f2a7ceba0..802801b8b9 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -3311,7 +3311,11 @@ static QMutex telephony_dialog_mutex; void MainWindow::openTelephonyRtpPlayerDialog() { if (!rtp_player_dialog_) { +#ifdef HAVE_LIBPCAP rtp_player_dialog_ = new RtpPlayerDialog(*this, capture_file_, captureSession()->state != CAPTURE_STOPPED); +#else + rtp_player_dialog_ = new RtpPlayerDialog(*this, capture_file_, false); +#endif connect(rtp_player_dialog_, SIGNAL(goToPacket(int)), packet_list_, SLOT(goToPacket(int))); |