registry: fix lseek() return code handling
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 24 Feb 2012 23:39:30 +0000 (23:39 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 24 Feb 2012 23:49:54 +0000 (23:49 +0000)
commit031514faebdcaeb05e6c6625d6152f122af1ed6e
tree766186dd5e1d306f151dfe5c0bfec666173181d0
parentc25b8e153d4515b42f9e522de8655460d5cde1dc
registry: fix lseek() return code handling

lseek() returns the offset if successful, and this is != 0 and
does not indicate an error. And if it does actually fail, don't
return FALSE (0) as an int, but -1. None of these things are
likely to have made a difference, ever. I don't think the offset
seek can ever actually happen, the current file position and the
current offset should always be increased in lock step, unless
there was an error in which case we'd just error out.
gst/gstregistrybinary.c