mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 803471 - Part 5b - Change OmxDecode to use GonkNativeWindowClient. r=cdouble
This commit is contained in:
parent
47441e4a44
commit
269dd694f1
@ -19,6 +19,7 @@
|
||||
#include "prlog.h"
|
||||
|
||||
#include "GonkNativeWindow.h"
|
||||
#include "GonkNativeWindowClient.h"
|
||||
#include "OmxDecoder.h"
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
@ -227,6 +228,7 @@ bool OmxDecoder::Init() {
|
||||
int64_t totalDurationUs = 0;
|
||||
|
||||
mNativeWindow = new GonkNativeWindow();
|
||||
mNativeWindowClient = new GonkNativeWindowClient(mNativeWindow);
|
||||
|
||||
// OMXClient::connect() always returns OK and abort's fatally if
|
||||
// it can't connect.
|
||||
@ -250,7 +252,7 @@ bool OmxDecoder::Init() {
|
||||
videoTrack,
|
||||
nullptr,
|
||||
flags,
|
||||
mNativeWindow);
|
||||
mNativeWindowClient);
|
||||
if (videoSource == nullptr) {
|
||||
NS_WARNING("Couldn't create OMX video source");
|
||||
return false;
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <utils/RefBase.h>
|
||||
|
||||
#include "GonkNativeWindow.h"
|
||||
#include "GonkNativeWindowClient.h"
|
||||
#include "GonkIOSurfaceImage.h"
|
||||
#include "MPAPI.h"
|
||||
#include "MediaResource.h"
|
||||
@ -81,6 +82,7 @@ class OmxDecoder : public RefBase {
|
||||
AbstractMediaDecoder *mDecoder;
|
||||
MediaResource *mResource;
|
||||
sp<GonkNativeWindow> mNativeWindow;
|
||||
sp<GonkNativeWindowClient> mNativeWindowClient;
|
||||
sp<MediaSource> mVideoTrack;
|
||||
sp<MediaSource> mVideoSource;
|
||||
sp<MediaSource> mAudioTrack;
|
||||
|
Loading…
Reference in New Issue
Block a user