mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue