• Glenn Kasten's avatar
    Fix race in getting duration · 1fa5c320
    Glenn Kasten authored
    mDuration is protected by mSettingsLock because it is accessed from both
    the ALooper thread and from the application thread, but only one of the
    two "set"s was using the lock, and the "get" was not using the lock.
    
    Also added some comments about the lock, and moved lock closer inside { }.
    
    Change-Id: I7c96186f31baaad1b941d934549cb50d4f82d0c8
    1fa5c320
android_GenericMediaPlayer.cpp 18.7 KB