Skip to content
Permalink
Browse files
[Win] Unreviewed build fix.
* platform/graphics/avfoundation/cf/InbandTextTrackPrivateAVCF.cpp:
(WebCore::InbandTextTrackPrivateAVCF::readNativeSampleBuffer): Don't try to build
the new Legible Output API features if they aren't available in the build
environment.



Canonical link: https://commits.webkit.org/164989@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@186799 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
brentfulgham committed Jul 14, 2015
1 parent 567361a commit 5a1898a05dfd6757243c68a9b55bc15ba490b009
Showing 2 changed files with 13 additions and 0 deletions.
@@ -1,3 +1,12 @@
2015-07-13 Brent Fulgham <bfulgham@apple.com>

[Win] Unreviewed build fix.

* platform/graphics/avfoundation/cf/InbandTextTrackPrivateAVCF.cpp:
(WebCore::InbandTextTrackPrivateAVCF::readNativeSampleBuffer): Don't try to build
the new Legible Output API features if they aren't available in the build
environment.

2015-07-13 Brent Fulgham <bfulgham@apple.com>

[Win] Update Media Player logic for new Legible Output API
@@ -189,6 +189,7 @@ bool InbandTextTrackPrivateAVCF::isDefault() const

bool InbandTextTrackPrivateAVCF::readNativeSampleBuffer(CFArrayRef nativeSamples, CFIndex index, RefPtr<ArrayBuffer>& buffer, MediaTime& duration, CMFormatDescriptionRef& formatDescription)
{
#if HAVE(AVCFPLAYERITEM_CALLBACK_VERSION_2)
const AVCFPlayerItemLegibleOutputSample* sampleBuffer = reinterpret_cast<const AVCFPlayerItemLegibleOutputSample*>(CFArrayGetValueAtIndex(nativeSamples, index));
if (!sampleBuffer)
return false;
@@ -208,6 +209,9 @@ bool InbandTextTrackPrivateAVCF::readNativeSampleBuffer(CFArrayRef nativeSamples
buffer = ArrayBuffer::create(m_sampleInputBuffer.data(), m_sampleInputBuffer.size());

return true;
#else
return InbandTextTrackPrivateAVF::readNativeSampleBuffer(nativeSamples, index, buffer, duration, formatDescription);
#endif
}

} // namespace WebCore

0 comments on commit 5a1898a

Please sign in to comment.