mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
message: Add unit test for GST_MESSAGE_RATE_CHANGE
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/528>
This commit is contained in:
parent
4ce161258e
commit
87504fe877
1 changed files with 15 additions and 0 deletions
|
@ -612,6 +612,21 @@ GST_START_TEST (test_parsing)
|
||||||
gst_structure_free (test_structure);
|
gst_structure_free (test_structure);
|
||||||
gst_tag_list_unref (test_tag_list);
|
gst_tag_list_unref (test_tag_list);
|
||||||
}
|
}
|
||||||
|
/* GST_MESSAGE_RATE_CHANGE */
|
||||||
|
{
|
||||||
|
gdouble rate_multiplier;
|
||||||
|
|
||||||
|
message = gst_message_new_instant_rate_request (NULL, 1.5);
|
||||||
|
fail_if (message == NULL);
|
||||||
|
fail_unless (GST_MESSAGE_TYPE (message) ==
|
||||||
|
GST_MESSAGE_INSTANT_RATE_REQUEST);
|
||||||
|
fail_unless (GST_MESSAGE_SRC (message) == NULL);
|
||||||
|
|
||||||
|
gst_message_parse_instant_rate_request (message, &rate_multiplier);
|
||||||
|
fail_unless (rate_multiplier == 1.5);
|
||||||
|
|
||||||
|
gst_message_unref (message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
Loading…
Reference in a new issue