mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
tests: fix vararg handling in rtpbasedepayload unit test
Makes it pass on 32-bit systems.
This commit is contained in:
parent
ec6b178339
commit
8f8f1f9de1
1 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ static void push_rtp_buffer_full (State *state, GstFlowReturn expected,
|
||||||
mapped = TRUE;
|
mapped = TRUE;
|
||||||
}
|
}
|
||||||
if (!g_strcmp0 (field, "rtptime")) {
|
if (!g_strcmp0 (field, "rtptime")) {
|
||||||
guint32 rtptime = va_arg (var_args, guint32);
|
guint32 rtptime = va_arg (var_args, guint64);
|
||||||
gst_rtp_buffer_set_timestamp (&rtp, rtptime);
|
gst_rtp_buffer_set_timestamp (&rtp, rtptime);
|
||||||
} else if (!g_strcmp0 (field, "payload-type")) {
|
} else if (!g_strcmp0 (field, "payload-type")) {
|
||||||
guint payload_type = va_arg (var_args, guint);
|
guint payload_type = va_arg (var_args, guint);
|
||||||
|
@ -340,7 +340,7 @@ static void push_rtp_buffer_full (State *state, GstFlowReturn expected,
|
||||||
guint seq = va_arg (var_args, guint);
|
guint seq = va_arg (var_args, guint);
|
||||||
gst_rtp_buffer_set_seq (&rtp, seq);
|
gst_rtp_buffer_set_seq (&rtp, seq);
|
||||||
} else if (!g_strcmp0 (field, "ssrc")) {
|
} else if (!g_strcmp0 (field, "ssrc")) {
|
||||||
guint32 ssrc = va_arg (var_args, guint32);
|
guint32 ssrc = va_arg (var_args, guint);
|
||||||
gst_rtp_buffer_set_ssrc (&rtp, ssrc);
|
gst_rtp_buffer_set_ssrc (&rtp, ssrc);
|
||||||
} else {
|
} else {
|
||||||
fail ("test cannot set unknown buffer field '%s'", field);
|
fail ("test cannot set unknown buffer field '%s'", field);
|
||||||
|
|
Loading…
Reference in a new issue