[vlc-commits] taglib: check vlc_stream_Seek return
Thomas Guillem
git at videolan.org
Fri Jul 22 11:26:05 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Jul 22 11:08:29 2016 +0200| [2f66612bf318b9bcc5e3c1d1eb38c40c02de3d03] | committer: Thomas Guillem
taglib: check vlc_stream_Seek return
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f66612bf318b9bcc5e3c1d1eb38c40c02de3d03
---
modules/meta_engine/taglib.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index 9c0023b..94b9dbc 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -230,8 +230,8 @@ public:
default:
break;
}
- vlc_stream_Seek( m_stream, pos + offset );
- m_previousPos = pos + offset;
+ if (vlc_stream_Seek( m_stream, pos + offset ) == 0)
+ m_previousPos = pos + offset;
}
void clear()
More information about the vlc-commits
mailing list