Loading media/libstagefright/AwesomePlayer.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -2217,6 +2217,10 @@ status_t AwesomePlayer::finishSetDataSource_l() { mLock.unlock(); status_t err = mConnectingDataSource->connect(mUri, &mUriHeaders); // force connection at this point, to avoid a race condition between getMIMEType and the // caching datasource constructed below, which could result in multiple requests to the // server, and/or failed connections. String8 contentType = mConnectingDataSource->getMIMEType(); mLock.lock(); if (err != OK) { Loading Loading @@ -2247,8 +2251,6 @@ status_t AwesomePlayer::finishSetDataSource_l() { mConnectingDataSource.clear(); String8 contentType = dataSource->getMIMEType(); if (strncasecmp(contentType.string(), "audio/", 6)) { // We're not doing this for streams that appear to be audio-only // streams to ensure that even low bandwidth streams start Loading Loading
media/libstagefright/AwesomePlayer.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -2217,6 +2217,10 @@ status_t AwesomePlayer::finishSetDataSource_l() { mLock.unlock(); status_t err = mConnectingDataSource->connect(mUri, &mUriHeaders); // force connection at this point, to avoid a race condition between getMIMEType and the // caching datasource constructed below, which could result in multiple requests to the // server, and/or failed connections. String8 contentType = mConnectingDataSource->getMIMEType(); mLock.lock(); if (err != OK) { Loading Loading @@ -2247,8 +2251,6 @@ status_t AwesomePlayer::finishSetDataSource_l() { mConnectingDataSource.clear(); String8 contentType = dataSource->getMIMEType(); if (strncasecmp(contentType.string(), "audio/", 6)) { // We're not doing this for streams that appear to be audio-only // streams to ensure that even low bandwidth streams start Loading