#include <gst/video/video.h>
#include <gst/base/gstbasesink.h>
+#include <gst/rtp/rtp.h>
#include <gst/check/gstcheck.h>
#include <gst/check/gstharness.h>
const guint8 data[16] = { 0 };
GstCaps *caps;
GstVideoRegionOfInterestMeta *roi_meta;
+ GstRTPSourceMeta *rtp_source_meta;
+ guint32 ssrc = 1234;
h = gst_harness_new ("videoscale");
caps = gst_caps_new_empty_simple ("timestamp/test");
gst_buffer_add_video_region_of_interest_meta (buffer, "face", 0, 1, 2, 3);
+ rtp_source_meta = gst_buffer_add_rtp_source_meta (buffer, &ssrc, NULL, 0);
gst_harness_set_sink_caps_str (h,
"video/x-raw,width=8,height=8,format=GRAY8");
fail_unless_equals_int (roi_meta->w, 4);
fail_unless_equals_int (roi_meta->h, 6);
+ rtp_source_meta = gst_buffer_get_rtp_source_meta (buffer);
+ fail_unless (rtp_source_meta != NULL);
+ fail_unless (rtp_source_meta->ssrc_valid);
+ fail_unless_equals_int (rtp_source_meta->ssrc, ssrc);
+
gst_buffer_unref (buffer);
gst_caps_unref (caps);
gst_harness_teardown (h);