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:
af29082
)
theoraenc: remove bogus <0 check for unsigned var
author
Stefan Kost
<ensonic@users.sf.net>
Wed, 25 May 2011 12:24:33 +0000
(15:24 +0300)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/ext/theora/gsttheoraenc.c
b/ext/theora/gsttheoraenc.c
index 45c9afb88cb39d36d1551c4912a2db69956f9f6d..e77f8e6d3938d29fed14a36e08b56b11a99f31bb 100644
(file)
--- a/
ext/theora/gsttheoraenc.c
+++ b/
ext/theora/gsttheoraenc.c
@@
-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),