audio-converter: remove unneeded check for unsigned < 0
Commit ff6d1a2a25b247688f38e117782a6b43d525706a 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:
parent
b0b0536f91
commit
df16e8dd5a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user