Merge "Remove some obsolete code." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
1a140bf65c
@@ -854,18 +854,6 @@ void AwesomePlayer::setVideoSource(sp<MediaSource> source) {
|
|||||||
|
|
||||||
status_t AwesomePlayer::initVideoDecoder() {
|
status_t AwesomePlayer::initVideoDecoder() {
|
||||||
uint32_t flags = 0;
|
uint32_t flags = 0;
|
||||||
#if 0
|
|
||||||
if (mRTPSession != NULL) {
|
|
||||||
// XXX hack.
|
|
||||||
|
|
||||||
const char *mime;
|
|
||||||
CHECK(mVideoTrack->getFormat()->findCString(kKeyMIMEType, &mime));
|
|
||||||
if (!strcasecmp(mime, MEDIA_MIMETYPE_VIDEO_AVC)) {
|
|
||||||
flags |= OMXCodec::kPreferSoftwareCodecs;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
mVideoSource = OMXCodec::Create(
|
mVideoSource = OMXCodec::Create(
|
||||||
mClient.interface(), mVideoTrack->getFormat(),
|
mClient.interface(), mVideoTrack->getFormat(),
|
||||||
false, // createEncoder
|
false, // createEncoder
|
||||||
|
|||||||
Reference in New Issue
Block a user