mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
tests: flacparse: check and compare intended data
This commit is contained in:
parent
736f68e1e6
commit
ec6b2e8659
1 changed files with 4 additions and 2 deletions
|
@ -230,10 +230,12 @@ GST_START_TEST (test_parse_flac_detect_stream)
|
|||
buf = g_value_peek_pointer (bufval);
|
||||
if (i == 0) {
|
||||
fail_unless (GST_BUFFER_SIZE (buf) == sizeof (streaminfo_header));
|
||||
fail_unless (memcmp (buf, streaminfo_header, sizeof (streaminfo_header)));
|
||||
fail_unless (memcmp (GST_BUFFER_DATA (buf), streaminfo_header,
|
||||
sizeof (streaminfo_header)) == 0);
|
||||
} else if (i == 1) {
|
||||
fail_unless (GST_BUFFER_SIZE (buf) == sizeof (comment_header));
|
||||
fail_unless (memcmp (buf, comment_header, sizeof (comment_header)));
|
||||
fail_unless (memcmp (GST_BUFFER_DATA (buf), comment_header,
|
||||
sizeof (comment_header)) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue