Make PLS parser more permissive.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 28 Aug 2014 14:00:15 +0000 (16:00 +0200)
committerYoann Lopes <yoann.lopes@digia.com>
Wed, 10 Sep 2014 13:15:54 +0000 (15:15 +0200)
commit4c5aec9bb6fd95a65544aa433f1357320132ae9f
tree3608ecb2bbd94c5f82ec795b13bd88591f439574
parent90fd3ac39999389fd898dd43210f8af95adb5493
Make PLS parser more permissive.

The PLS format is not clearly specified, some rules are just assumed
and files don't always respect them.
We now only look for 'File' entries, since that's the only thing we
actually use. We ignore the Version, NumberOfEntries, Title, Length
and any other unrecognized tags.

Task-number: QTBUG-40515
Change-Id: I9c176b7b68fd1441abbd50364f88994ad5d6236f
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/multimedia/playback/playlistfileparser.cpp
tests/auto/unit/qmediaplaylist/testdata/empty.pls [moved from tests/auto/unit/qmediaplaylist/testdata/trash.pls with 100% similarity]
tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp