mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
tests: rtp: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
fd43b3d604
commit
7657b8cb51
1 changed files with 2 additions and 2 deletions
|
@ -2234,11 +2234,11 @@ GST_START_TEST (test_rtcp_compound_padding)
|
||||||
rtcp_buffer = gst_rtcp_buffer_new (1400);
|
rtcp_buffer = gst_rtcp_buffer_new (1400);
|
||||||
|
|
||||||
fail_unless (gst_rtcp_buffer_map (rtcp_buffer, GST_MAP_READWRITE, &rtcp));
|
fail_unless (gst_rtcp_buffer_map (rtcp_buffer, GST_MAP_READWRITE, &rtcp));
|
||||||
rtcp_packet = g_slice_new0 (GstRTCPPacket);
|
rtcp_packet = g_new0 (GstRTCPPacket, 1);
|
||||||
fail_unless (gst_rtcp_buffer_add_packet (&rtcp, GST_RTCP_TYPE_RR,
|
fail_unless (gst_rtcp_buffer_add_packet (&rtcp, GST_RTCP_TYPE_RR,
|
||||||
rtcp_packet));
|
rtcp_packet));
|
||||||
gst_rtcp_packet_rr_set_ssrc (rtcp_packet, 1);
|
gst_rtcp_packet_rr_set_ssrc (rtcp_packet, 1);
|
||||||
g_slice_free (GstRTCPPacket, rtcp_packet);
|
g_free (rtcp_packet);
|
||||||
gst_rtcp_buffer_unmap (&rtcp);
|
gst_rtcp_buffer_unmap (&rtcp);
|
||||||
|
|
||||||
fail_unless (gst_rtcp_buffer_validate (rtcp_buffer));
|
fail_unless (gst_rtcp_buffer_validate (rtcp_buffer));
|
||||||
|
|
Loading…
Reference in a new issue