theoraenc: remove bogus <0 check for unsigned var
authorStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 12:24:33 +0000 (15:24 +0300)
committerStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 12:26:13 +0000 (15:26 +0300)
bytes_written is a gsize which is unsigned and thus never < 0.

ext/theora/gsttheoraenc.c

index 45c9afb..e77f8e6 100644 (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),