media: Fix resource leak

When call MediaMetadataRetriever.setDataSource or getFrameAtTime should 
ensure call release in finally to avoid resource leak

Patch set 2: Remove unnecessary white spaces

Change-Id: I49a7f2fb99dc8b9560e7c17421125356e45a87ac