audio-converter: remove unneeded check for unsigned < 0

Commit ff6d1a2a25 changed sample's type from
gint to gsize (and renamed it to in_samples). gsize is an unsigned long,
which means it can never be a negative value and the check making sure that
in_samples is >= 0 is never going to be false. Removing it.

CID 1338689
This commit is contained in:
Luis de Bethencourt 2015-11-12 14:18:03 +00:00
parent b0b0536f91
commit df16e8dd5a

View file

@ -394,7 +394,6 @@ gst_audio_converter_samples (GstAudioConverter * convert,
g_return_val_if_fail (convert != NULL, FALSE);
g_return_val_if_fail (src != NULL, FALSE);
g_return_val_if_fail (dst != NULL, FALSE);
g_return_val_if_fail (in_samples >= 0, FALSE);
g_return_val_if_fail (out_samples != NULL, FALSE);
if (in_samples == 0) {