After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774357 - mpdparser: Support multiple Period elements in external xml
mpdparser: Support multiple Period elements in external xml
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-13 13:52 UTC by Seungha Yang
Modified: 2016-11-14 14:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
mpdparser: Support multiple Period elements in external xml (4.81 KB, patch)
2016-11-13 13:53 UTC, Seungha Yang
none Details | Review
mpdparser: Support multiple Period elements in external xml (4.41 KB, patch)
2016-11-13 22:55 UTC, Seungha Yang
none Details | Review
mpdparser: Support multiple Period elements in external xml (4.41 KB, patch)
2016-11-14 14:34 UTC, Seungha Yang
none Details | Review
mpdparser: Support multiple Period elements in external xml (10.80 KB, patch)
2016-11-14 14:36 UTC, Seungha Yang
none Details | Review
mpdparser: Support multiple Period elements in external xml (10.66 KB, patch)
2016-11-14 14:41 UTC, Seungha Yang
committed Details | Review

Description Seungha Yang 2016-11-13 13:52:53 UTC
mpdparser: Support multiple Period elements in external xml

External xml could have empty, one or multiple top-level "Period" elements.
Because xml parser cannot parse the multiple top-level elements
(i.e., no root element), we need to wrap a xml in order to make root element.
See also ISO/IEC 23009-1:2014 5.3.2.2
Comment 1 Seungha Yang 2016-11-13 13:53:42 UTC
Created attachment 339750 [details] [review]
mpdparser: Support multiple Period elements in external xml
Comment 3 Seungha Yang 2016-11-13 22:55:55 UTC
Created attachment 339772 [details] [review]
mpdparser: Support multiple Period elements in external xml
Comment 4 Sebastian Dröge (slomo) 2016-11-14 08:55:29 UTC
Review of attachment 339772 [details] [review]:

Please also add a unit test for this to the mpdparser tests. Looks good otherwise, thanks :)
Comment 5 Seungha Yang 2016-11-14 09:03:59 UTC
(In reply to Sebastian Dröge (slomo) from comment #4)
> Review of attachment 339772 [details] [review] [review]:
> 
> Please also add a unit test for this to the mpdparser tests. Looks good
> otherwise, thanks :)

I'll prepare it :)
Comment 6 Seungha Yang 2016-11-14 14:34:26 UTC
Created attachment 339804 [details] [review]
mpdparser: Support multiple Period elements in external xml

Updating patch with test code.
Comment 7 Seungha Yang 2016-11-14 14:36:08 UTC
Created attachment 339805 [details] [review]
mpdparser: Support multiple Period elements in external xml
Comment 8 Seungha Yang 2016-11-14 14:41:07 UTC
Created attachment 339807 [details] [review]
mpdparser: Support multiple Period elements in external xml

delete unintended diff. (due to removed whitespace)
Comment 9 Sebastian Dröge (slomo) 2016-11-14 14:55:16 UTC
Review of attachment 339807 [details] [review]:

Looks good, thanks
Comment 10 Sebastian Dröge (slomo) 2016-11-14 14:56:58 UTC
Attachment 339807 [details] pushed as 68e4f91 - mpdparser: Support multiple Period elements in external xml