tests: audiorate: Don't compare string with enum
../subprojects/gst-plugins-base/tests/check/elements/audiorate.c(192): warning C4047 Meaningful validation at that point seems to checking output GstAudioFormat of gst_audio_format_from_string()
This commit is contained in:
parent
be5ed3e964
commit
541d598fad
@ -189,7 +189,7 @@ do_perfect_stream_test (guint rate, const gchar * format,
|
||||
gint width;
|
||||
|
||||
fmt = gst_audio_format_from_string (format);
|
||||
g_assert (format != GST_AUDIO_FORMAT_UNKNOWN);
|
||||
fail_unless (fmt != GST_AUDIO_FORMAT_UNKNOWN);
|
||||
|
||||
finfo = gst_audio_format_get_info (fmt);
|
||||
width = GST_AUDIO_FORMAT_INFO_WIDTH (finfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user