• Glenn Kasten's avatar
    Bug 5126938 dependency for video sinks · 35ac702e
    Glenn Kasten authored
    Fixing bug 5126938 will involve configuring the video sink in two places:
    at the initial data locator when creating the MediaPlayer object, and
    then later in the IAndroidConfiguration interface.  This CL is preparation
    for that.
    
    Details:
     - Abstract out common code into android_Player_setNativeWindow.
     - Move the code for checking and initializing the video sink from an
       #ifdef ANDROID in the CMediaPlayer_Realize portable code to into
       platform-specific android_Player_realize.
     - Only set one of mSurface or mSurfaceTexture to non-NULL.
     - For methods which can't fail, replace the SLresult return value by void.
    
    Change-Id: Iec8fd91e1a6de45eb64241b35e3f7d7faf63d727
    35ac702e
android_GenericMediaPlayer.cpp 16.9 KB