diff --git a/tests/check/libs/rtpbasedepayload.c b/tests/check/libs/rtpbasedepayload.c index 37d4a3c657..472692d26a 100644 --- a/tests/check/libs/rtpbasedepayload.c +++ b/tests/check/libs/rtpbasedepayload.c @@ -120,7 +120,7 @@ static GstBuffer * gst_rtp_dummy_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) { GstRtpDummyDepay *self = GST_RTP_DUMMY_DEPAY (depayload); - GstRTPBuffer rtp = { NULL }; + GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; GstBuffer *outbuf; guint32 rtptime; guint i; @@ -278,12 +278,12 @@ validate_event (guint index, const gchar * name, const gchar * field, ...) gdouble expected = va_arg (var_args, gdouble); const GstSegment *segment; gst_event_parse_segment (event, &segment); - fail_unless_equals_uint64 (segment->applied_rate, expected); + fail_unless_equals_float (segment->applied_rate, expected); } else if (!g_strcmp0 (field, "rate")) { gdouble expected = va_arg (var_args, gdouble); const GstSegment *segment; gst_event_parse_segment (event, &segment); - fail_unless_equals_uint64 (segment->rate, expected); + fail_unless_equals_float (segment->rate, expected); } else if (!g_strcmp0 (field, "base")) { GstClockTime expected = va_arg (var_args, GstClockTime); const GstSegment *segment; @@ -349,7 +349,7 @@ static void rtp_buffer_set_valist (GstBuffer * buf, const gchar * field, va_list var_args, gboolean * extra_ref_) { - GstRTPBuffer rtp = { NULL }; + GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; gboolean mapped = FALSE; gboolean extra_ref = FALSE;