Fix potential use-after-free issue
NuPlayerListener passed this out of its constructor to IStreamSource->setListener, and it would get wrapped in a smart pointer, then free'd when that method returned. Move the setListener call after instantiation of NuPlayerListener to avoid passing this out of the NuPlayerListener constructor. Test: tested in presubmit Bug: 151456667 Change-Id: I996d9ad9eaf0e52992b7f9e10fd94a94c350ad73 (cherry picked from commit aad519df)
Loading