MediaBuffer.cpp: fix screenrecord abort issues - Thanks to Playfulgod