From e91806b8e91da80fb684fc29440b1684d8155cf8 Mon Sep 17 00:00:00 2001 From: Jirka Novak Date: Sun, 25 Apr 2021 14:47:59 +0200 Subject: RTP Player: Fix for compilation when no HAVE_LIBPCAP is defined See comment on !2801. --- ui/qt/main_window_slots.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui') 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))); -- cgit v1.2.3