theoraenc: fix variable type for bytes_consumed
authorStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 12:23:13 +0000 (15:23 +0300)
committerStefan Kost <ensonic@users.sf.net>
Wed, 25 May 2011 12:26:13 +0000 (15:26 +0300)
th_encode_ctl() returns an int. Using a gsize result in bogus <0 checks.

ext/theora/gsttheoraenc.c

index c580675..45c9afb 100644 (file)
@@ -1008,7 +1008,8 @@ theora_enc_read_multipass_cache (GstTheoraEnc * enc)
 {
   GstBuffer *cache_buf;
   const guint8 *cache_data;
-  gsize bytes_read = 0, bytes_consumed = 0;
+  gsize bytes_read = 0;
+  gint bytes_consumed = 0;
   GIOStatus stat = G_IO_STATUS_NORMAL;
   gboolean done = FALSE;