mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 13:04:18 -04:00
startsWith() should be used to avoid bugs like: s.mid(0, 4) == "Foo".
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@371832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -88,7 +88,7 @@ void MPEG::XingHeader::parse(const ByteVector &data)
|
||||
{
|
||||
// Check to see if a valid Xing header is available.
|
||||
|
||||
if(data.mid(0, 4) != "Xing")
|
||||
if(!data.startsWith("Xing"))
|
||||
return;
|
||||
|
||||
// If the XingHeader doesn't contain the number of frames and the total stream
|
||||
|
Reference in New Issue
Block a user