diff --git a/mediaPlayer/SuperMediaPlayer.cpp b/mediaPlayer/SuperMediaPlayer.cpp index 1ae17bea1..91f2f04ed 100644 --- a/mediaPlayer/SuperMediaPlayer.cpp +++ b/mediaPlayer/SuperMediaPlayer.cpp @@ -2622,7 +2622,8 @@ namespace Cicada { } } - if (mMediaFrameCb && !pMedia_Frame->isProtected()) { + //TODO : cache depends on this callback. need find another way + if (mMediaFrameCb /*&& !pMedia_Frame->isProtected()*/) { // TODO: change to std::unique_ptr mMediaFrameCb(mMediaFrameCbArg, pMedia_Frame, ST_TYPE_AUDIO); } @@ -2630,7 +2631,8 @@ namespace Cicada { mBufferController.AddPacket(move(pMedia_Frame), BUFFER_TYPE_AUDIO); } else if (pFrame->getInfo().streamIndex == mCurrentSubtitleIndex || pFrame->getInfo().streamIndex == mWillChangedSubtitleStreamIndex) { - if (mMediaFrameCb && !pMedia_Frame->isProtected()) { + //TODO : cache depends on this callback. need find another way + if (mMediaFrameCb /*&& !pMedia_Frame->isProtected()*/) { // TODO: change to std::unique_ptr mMediaFrameCb(mMediaFrameCbArg, pMedia_Frame, ST_TYPE_SUB); }