theoraenc: remove bogus <0 check for unsigned var

bytes_written is a gsize which is unsigned and thus never < 0.
This commit is contained in:
Stefan Kost 2011-05-25 15:24:33 +03:00
parent af29082e94
commit 41b60ca83a

View file

@ -1078,7 +1078,7 @@ theora_enc_write_multipass_cache (GstTheoraEnc * enc, gboolean begin,
}
if (stat == G_IO_STATUS_ERROR || bytes_read < 0 || bytes_written < 0) {
if (stat == G_IO_STATUS_ERROR || bytes_read < 0) {
if (begin) {
if (eos)
GST_ELEMENT_WARNING (enc, RESOURCE, WRITE, (NULL),