Control socket: report events per port (reflector)

This commit is contained in:
Martin Pulec
2016-05-19 10:33:09 +02:00
parent 9153ed8e60
commit bbbc242828

View File

@@ -155,13 +155,6 @@ void ultragrid_rtp_video_rxtx::send_frame_async(shared_ptr<video_frame> tx_frame
int buffer_id = tx_get_buffer_id(m_tx);
auto new_desc = video_desc_from_frame(tx_frame.get());
if (new_desc != m_video_desc) {
control_report_event(m_control, string("captured video changed - ") +
(string) new_desc);
m_video_desc = new_desc;
}
if (m_paused) {
goto after_send;
}
@@ -217,6 +210,13 @@ after_send:
if (m_port_id != -1) {
oss << "-" << m_port_id << " ";
}
auto new_desc = video_desc_from_frame(tx_frame.get());
if (new_desc != m_video_desc) {
control_report_event(m_control, string("-") + to_string(m_port_id) +
string(" captured video changed - ") +
(string) new_desc);
m_video_desc = new_desc;
}
oss << "bufferId " << buffer_id <<
" droppedFrames " << dropped_frames <<
" nanoPerFrameActual " << (m_nano_per_frame_actual_cumul += nano_actual) <<