MediaSinkImpl: Simplify code

Change-Id: I879e29df70f21a21f0ddca02b60a145d8daa2449