Stylistic tweaks.

This commit is contained in:
Oliver Woodman 2015-09-18 18:25:07 +01:00
parent 88452d95ee
commit c1b8352e33

View file

@ -590,10 +590,13 @@ public class MediaPresentationDescriptionParser extends DefaultHandler
protected int parseAudioChannelConfiguration(XmlPullParser xpp)
throws XmlPullParserException, IOException {
int audioChannels = -1;
String schemeIdUri = parseString(xpp, "schemeIdUri", "");
if (schemeIdUri.equals("urn:mpeg:dash:23003:3:audio_channel_configuration:2011"))
int audioChannels;
String schemeIdUri = parseString(xpp, "schemeIdUri", null);
if ("urn:mpeg:dash:23003:3:audio_channel_configuration:2011".equals(schemeIdUri)) {
audioChannels = parseInt(xpp, "value");
} else {
audioChannels = -1;
}
do {
xpp.next();
} while (!ParserUtil.isEndTag(xpp, "AudioChannelConfiguration"));