diff options
author | Andreas Huber <andih@google.com> | 2013-03-07 10:57:07 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2013-03-07 10:57:07 -0800 |
commit | 5abf87f9af48149972eeb851ecaea679911da040 (patch) | |
tree | a6289a39e6816d933125cfd4f444a7eacc713162 /media/libstagefright/wifi-display/source | |
parent | 0ab4d86643dfb668a583c13b8bd61b589dbe8602 (diff) | |
download | frameworks_av-5abf87f9af48149972eeb851ecaea679911da040.zip frameworks_av-5abf87f9af48149972eeb851ecaea679911da040.tar.gz frameworks_av-5abf87f9af48149972eeb851ecaea679911da040.tar.bz2 |
Disable our fancy logic to respect both sink and source's native formats
since it isn't actually supported by anything in the field.
Change-Id: I9cd038d7631105de26303312ca87c472d67034d4
Diffstat (limited to 'media/libstagefright/wifi-display/source')
-rw-r--r-- | media/libstagefright/wifi-display/source/WifiDisplaySource.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp index 07eb237..b8524f6 100644 --- a/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp +++ b/media/libstagefright/wifi-display/source/WifiDisplaySource.cpp @@ -59,18 +59,10 @@ WifiDisplaySource::WifiDisplaySource( mHDCPPort(0), mHDCPInitializationComplete(false), mSetupTriggerDeferred(false) { - mSupportedSourceVideoFormats.enableAll(); + mSupportedSourceVideoFormats.disableAll(); mSupportedSourceVideoFormats.setNativeResolution( VideoFormats::RESOLUTION_CEA, 5); // 1280x720 p30 - - // Disable resolutions above 1080p since the encoder won't be able to - // handle them. - mSupportedSourceVideoFormats.setResolutionEnabled( - VideoFormats::RESOLUTION_VESA, 28, false); // 1920x1200 p30 - - mSupportedSourceVideoFormats.setResolutionEnabled( - VideoFormats::RESOLUTION_VESA, 29, false); // 1920x1200 p60 } WifiDisplaySource::~WifiDisplaySource() { @@ -607,7 +599,7 @@ status_t WifiDisplaySource::sendM4(int32_t sessionID) { chosenVideoFormat.setNativeResolution( mChosenVideoResolutionType, mChosenVideoResolutionIndex); - body.append(chosenVideoFormat.getFormatSpec()); + body.append(chosenVideoFormat.getFormatSpec(true /* forM4Message */)); body.append("\r\n"); } |