Merge "Fix possible uaf of play policy state" into qt-dev am: 2a41846f89

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/13486147

Change-Id: Id454c425990a2a0913a1ee6dadc052fbae405482