Extract method in MediaParser

Also set selection flags unconditionally.

Bug: 132153067
Test: CTS.
Change-Id: Id325040db7946f60c59eeaeaf8508424b390b813
1 file changed