QMediaNetworkPlaylistProvider: Upon error parsing, stop parsing.
authorRobin Burchell <robin.burchell@jollamobile.com>
Thu, 31 Jul 2014 10:49:16 +0000 (12:49 +0200)
committerRobin Burchell <robin+qt@viroteck.net>
Mon, 4 Aug 2014 03:20:29 +0000 (05:20 +0200)
commit0ed18d846c0b425b0c50a2fefd7cc0fc148832c2
tree8aecc325ae8e7a7789c47449dd12e3b4629f7133
parente16ac8b55c36586aa67b1d4ec5e1b4edf03cd06b
QMediaNetworkPlaylistProvider: Upon error parsing, stop parsing.

When an error is found parsing a playlist, stop parsing. This will also prevent
the emission of the "loaded" signal when the parser finishes.

Some of the newly added testcases do not yet pass because the parser is overly
strict. These improvements are being tracked in QTBUG-40515.

Change-Id: I5c96b7eb488996f28eebd7b6c643940de8e2e0b9
Done-by: Andres Gomez <agomez@igalia.com>
Task-number: QTBUG-40513
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
src/multimedia/playback/qmedianetworkplaylistprovider.cpp
tests/auto/unit/qmediaplaylist/testdata/test.pls [new file with mode: 0644]
tests/auto/unit/qmediaplaylist/testdata/totem-pl-example.pls [new file with mode: 0644]
tests/auto/unit/qmediaplaylist/testdata/trash.pls [new file with mode: 0644]
tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp