diff --git a/src/video_rxtx/rtp.cpp b/src/video_rxtx/rtp.cpp index 5be367141..0c13d0470 100644 --- a/src/video_rxtx/rtp.cpp +++ b/src/video_rxtx/rtp.cpp @@ -141,7 +141,7 @@ rtp_video_rxtx::rtp_video_rxtx(map const ¶ms) : } if ((m_network_devices = initialize_network(m_requested_receiver.c_str(), m_recv_port_number, m_send_port_number, - m_participants, m_ipv6, m_requested_mcast_if.c_str())) + m_participants, m_ipv6, m_requested_mcast_if)) == NULL) { throw string("Unable to open network"); } else { @@ -199,7 +199,7 @@ void rtp_video_rxtx::change_tx_port(int tx_port) m_send_port_number = tx_port; m_network_devices = initialize_network(m_requested_receiver.c_str(), m_recv_port_number, m_send_port_number, m_participants, m_ipv6, - m_requested_mcast_if.c_str()); + m_requested_mcast_if); if (!m_network_devices) { throw string("Changing RX port failed!\n"); } diff --git a/src/video_rxtx/rtp.h b/src/video_rxtx/rtp.h index 1285b824c..35c31664b 100644 --- a/src/video_rxtx/rtp.h +++ b/src/video_rxtx/rtp.h @@ -76,7 +76,7 @@ protected: int m_recv_port_number; int m_send_port_number; bool m_ipv6; - std::string m_requested_mcast_if; + const char *m_requested_mcast_if; fec *m_fec_state; private: void process_message(struct msg_sender *); diff --git a/src/video_rxtx/ultragrid_rtp.cpp b/src/video_rxtx/ultragrid_rtp.cpp index 9cc7903b2..1cc3e4abf 100644 --- a/src/video_rxtx/ultragrid_rtp.cpp +++ b/src/video_rxtx/ultragrid_rtp.cpp @@ -181,7 +181,7 @@ void ultragrid_rtp_video_rxtx::receiver_process_messages() m_network_devices = initialize_network(m_requested_receiver.c_str(), m_recv_port_number, m_send_port_number, m_participants, m_ipv6, - m_requested_mcast_if.c_str()); + m_requested_mcast_if); if (!m_network_devices) { throw runtime_error("Changing RX port failed!"); }