Bug 1004194 - Unbreak build with --disable-webrtc after bug 970691. r=jesup

DONTBUILD change for non-default-config only
This commit is contained in:
Jan Beich 2014-05-01 04:22:27 -04:00
parent 8b1998b5d8
commit 95fffb06f6

View File

@ -22,7 +22,9 @@
#include "nsISupportsUtils.h"
#endif
#ifdef MOZ_WEBRTC
#include "YuvStamper.h"
#endif
#define VIDEO_RATE USECS_PER_S
#define AUDIO_RATE 16000
@ -245,11 +247,13 @@ MediaEngineDefaultVideoSource::Notify(nsITimer* aTimer)
layers::PlanarYCbCrData data;
AllocateSolidColorFrame(data, mOpts.mWidth, mOpts.mHeight, 0x80, mCb, mCr);
#ifdef MOZ_WEBRTC
uint64_t timestamp = PR_Now();
YuvStamper::Encode(mOpts.mWidth, mOpts.mHeight, mOpts.mWidth,
data.mYChannel,
reinterpret_cast<unsigned char*>(&timestamp), sizeof(timestamp),
0, 0);
#endif
ycbcr_image->SetData(data);
// SetData copies data, so we can free the frame