mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 10:40:25 +00:00
Control socket: report events per port (reflector)
This commit is contained in:
@@ -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) <<
|
||||
|
||||
Reference in New Issue
Block a user