1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-11-03 04:17:18 -05:00

Ensure stream_validate() sets errstr properly

This commit is contained in:
Moritz Grimm 2018-03-21 10:14:33 +01:00
parent 429a39196e
commit c4c9b96a0b

View File

@ -195,6 +195,7 @@ START_TEST(test_stream_validate)
ck_assert_int_ne(cfg_stream_validate(str, NULL), 0);
ck_assert_int_ne(cfg_stream_validate(str, &errstr), 0);
ck_assert_ptr_ne(errstr, NULL);
ck_assert_str_eq(errstr, "format missing or unsupported");
ck_assert_int_eq(cfg_stream_set_format(str, streams, CFG_SFMT_VORBIS,
NULL), 0);