mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1004194 - Unbreak build with --disable-webrtc after bug 970691. r=jesup
DONTBUILD change for non-default-config only
This commit is contained in:
parent
8b1998b5d8
commit
95fffb06f6
@ -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*>(×tamp), sizeof(timestamp),
|
||||
0, 0);
|
||||
#endif
|
||||
|
||||
ycbcr_image->SetData(data);
|
||||
// SetData copies data, so we can free the frame
|
||||
|
Loading…
Reference in New Issue
Block a user