WIP interception
This commit is contained in:
parent
2c8b1d9f46
commit
22c07f1e26
1 changed files with 9 additions and 1 deletions
10
src/dcall.c
10
src/dcall.c
|
@ -3,6 +3,7 @@
|
|||
#include <glib-2.0/gmodule.h>
|
||||
#include <glib-2.0/glib-object.h>
|
||||
#include <glib-2.0/glib-unix.h>
|
||||
#include <gst/rtp/gstrtpbuffer.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue