OSDN Git Service

HLS: handle EXT-X-DISCONTINUITY-SEQUENCE correctly
authorRobert Shih <robertshih@google.com>
Thu, 21 Apr 2016 23:21:36 +0000 (16:21 -0700)
committerRobert Shih <robertshih@google.com>
Fri, 22 Apr 2016 00:31:37 +0000 (17:31 -0700)
commit985746d11c888e110d5ea34d815efeb1115de0c6
tree53d9a0415c5e9ace8ed102688d6aeebdbe8d2b7d
parent4178befd29da90abe0e2fd6f58b5caa1c225badd
HLS: handle EXT-X-DISCONTINUITY-SEQUENCE correctly

Because EXT-X-DISCONTINUITY is a prefix of EXT-X-DISCONTINUITY-SEQUENCE,
putting EXT-X-DISCONTINUITY first in an if-startsWith/else-if-startsWith
block would cause EXT-X-DISCONTINUITY-SEQUENCE be parsed as
EXT-X-DISCONTINUITY.

Bug: 28320768
Change-Id: I667b97b0e2050324eec26779e6a2dae7900e96b8
media/libstagefright/httplive/M3UParser.cpp