Merge "libmedia: Initialize state vars to avoid possible crash" into nyc-dev