summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2011-12-06 12:47:05 +0200
committerLaszlo Papp <ext-laszlo.papp@nokia.com>2011-12-06 12:47:05 +0200
commit77fba7aedfc2ab30fc7fefeaff1678aa615588e3 (patch)
treeb5fcffaf602b2e18698972ac0a8fff0e5d96ce61
parentf6eeb8e0dcfb6efc7de3834e962cb45303dcfeee (diff)
Check against negative return value after the ov_pcm_tell call, not specific one
-rw-r--r--src/qalvorbisfileaudiodecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qalvorbisfileaudiodecoder.cpp b/src/qalvorbisfileaudiodecoder.cpp
index a2078fe..286bdc0 100644
--- a/src/qalvorbisfileaudiodecoder.cpp
+++ b/src/qalvorbisfileaudiodecoder.cpp
@@ -154,8 +154,8 @@ qint64
QALVorbisFileAudioDecoder::pos()
{
int retval;
- if ((retval = ov_pcm_tell(&d->oggVorbisFile)) == OV_EINVAL) {
- qWarning() << Q_FUNC_INFO << "Failed to tell the current position because the argument was invalid. The requested bitstream did not exist.";
+ if ((retval = ov_pcm_tell(&d->oggVorbisFile)) < 0) {
+ qWarning() << Q_FUNC_INFO << "Failed to tell the current position:" << retval;
}
return retval;