From 22c07f1e26d7ad8bd76249bf690e437f27e25529 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 28 Jan 2020 18:02:39 +0100 Subject: [PATCH] WIP interception --- src/dcall.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/dcall.c b/src/dcall.c index 4c39640..bd7d8c7 100644 --- a/src/dcall.c +++ b/src/dcall.c @@ -3,6 +3,7 @@ #include #include #include +#include struct dcall_elements { GstElement *pipeline; @@ -124,7 +125,14 @@ static GstPadProbeReturn jitter_buffer_sink_buffer(GstPad *pad, GstPadProbeInfo GstBuffer *buffer = NULL; buffer = gst_pad_probe_info_get_buffer (info); if (buffer == NULL) return GST_PAD_PROBE_OK; - if (gst_buffer_get_size (buffer) != 172) g_print("buffer size is %ld\n", gst_buffer_get_size (buffer)); + //if (gst_buffer_get_size (buffer) != 172) g_print("buffer size is %ld\n", gst_buffer_get_size (buffer)); + + GstMapInfo gmi; + gst_buffer_map(buffer, &gmi, GST_MAP_READ); + + GstRTPBuffer *rtp_buffer; + rtp_buffer-> + return GST_PAD_PROBE_OK; }