projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a11f6d4
)
theoraenc: fix variable type for bytes_consumed
author
Stefan Kost
<ensonic@users.sf.net>
Wed, 25 May 2011 12:23:13 +0000
(15:23 +0300)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/ext/theora/gsttheoraenc.c
b/ext/theora/gsttheoraenc.c
index
c580675
..
45c9afb
100644
(file)
--- a/
ext/theora/gsttheoraenc.c
+++ b/
ext/theora/gsttheoraenc.c
@@
-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;