summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;