From 88425e0199dc85f95b05ffb244c6ecc048dab853 Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 26 Jun 2023 12:05:16 +0200 Subject: Simplify the report of streaming multimedia info (#2026) The two fields `flow->flow_type` and `flow->protos.rtp.stream_type` are pretty much identical: rename the former in `flow->flow_multimedia_type` and remove the latter. --- example/ndpiReader.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'example/ndpiReader.c') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 4e4b74491..f3daeaad6 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1707,36 +1707,6 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa } } break; - - case INFO_RTP: - if(flow->rtp.stream_type != rtp_unknown) { - const char *what; - - switch(flow->rtp.stream_type) { - case rtp_screen_share: - what = "screen_share"; - break; - - case rtp_audio: - what = "audio"; - break; - - case rtp_video: - what = "video"; - break; - - case rtp_audio_video: - what = "audio/video"; - break; - - default: - what = NULL; - break; - } - - if(what) - fprintf(out, "[RTP Stream Type: %s]", what); - } } if(flow->ssh_tls.advertised_alpns) -- cgit v1.2.3