[LastfmFingerprint] Fix logic error causing wrong fingerprint id
authorBertrand Lorentz <bertrand.lorentz@gmail.com>
Fri, 26 Nov 2010 22:58:56 +0000 (23:58 +0100)
committerBertrand Lorentz <bertrand.lorentz@gmail.com>
Fri, 26 Nov 2010 22:58:56 +0000 (23:58 +0100)
commitcdad214e0739797f182737af4b4b0edb37c3ea03
treed8c6aa107a0743dae82cd753681479b88ebeb149
parent35ecc5ec45500b0b047e0438b5a38737b5ee6199
[LastfmFingerprint] Fix logic error causing wrong fingerprint id

The GetFpId would always return -2 if it got a correct response. Fix the
logic error and properly handle a negative fingerprint id as an error.
Fixes bgo#634730.
src/LastfmFingerprint/Banshee.LastfmFingerprint/FingerprintRequest.cs
src/LastfmFingerprint/Banshee.LastfmFingerprint/LastfmFingerprintService.cs