修改:
Frameworks\av\media\libmediaplayerservice\nuplayer\nuplayer.cpp
Void nuplayer::onMessageReceived(const sp<AMessage> &msg) {
...
case kWhatSetVideoNativeWindow:
{
ALOGD("kWhatSetVideoNativeWindow");
//add
if(mAudioDecoder == NULL||mVideoDecoder == NULL)
postScanSources();
...
}
...
}
时间: 2024-10-11 00:36:46