mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 888786 - Part 1: Remove OMX media plugin workarounds for Sony ICS devices - r=edwin
This commit is contained in:
parent
18bf70efbb
commit
e4a3c85df6
@ -138,16 +138,7 @@ static const char* GetOmxLibraryName()
|
||||
ALOG("Android Manufacturer is: %s", NS_LossyConvertUTF16toASCII(manufacturer).get());
|
||||
}
|
||||
|
||||
if (version == 15 &&
|
||||
(device.Find("LT28", false) == 0 ||
|
||||
device.Find("LT26", false) == 0 ||
|
||||
device.Find("LT22", false) == 0 ||
|
||||
device.Find("IS12", false) == 0 ||
|
||||
device.Find("MT27", false) == 0)) {
|
||||
// Sony Ericsson devices running ICS
|
||||
return "libomxpluginsony.so";
|
||||
}
|
||||
else if (version == 13 || version == 12 || version == 11) {
|
||||
if (version == 13 || version == 12 || version == 11) {
|
||||
return "libomxpluginhc.so";
|
||||
}
|
||||
else if (version == 10 && release_version >= NS_LITERAL_STRING("2.3.6")) {
|
||||
|
@ -66,17 +66,6 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if defined(MOZ_ANDROID_SONY_WORKAROUND)
|
||||
private:
|
||||
// Sony ICS devices have extra virtual methods in DataSource.
|
||||
// The dummy methods below fill these vtable positions.
|
||||
virtual void foo1() { abort(); }
|
||||
virtual void foo2() { abort(); }
|
||||
virtual void foo3() { abort(); }
|
||||
virtual void foo4() { abort(); }
|
||||
public:
|
||||
#endif
|
||||
|
||||
virtual status_t reconnectAtOffset(off64_t offset) {
|
||||
return ERROR_UNSUPPORTED;
|
||||
}
|
||||
|
@ -20,22 +20,4 @@ index 81ef632..713af92 100644
|
||||
public:
|
||||
enum Flags {
|
||||
kWantsPrefetching = 1,
|
||||
@@ -66,17 +62,6 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
-#if defined(MOZ_ANDROID_SONY_WORKAROUND)
|
||||
-private:
|
||||
- // Sony ICS devices have extra virtual methods in DataSource.
|
||||
- // The dummy methods below fill these vtable positions.
|
||||
- virtual void foo1() { abort(); }
|
||||
- virtual void foo2() { abort(); }
|
||||
- virtual void foo3() { abort(); }
|
||||
- virtual void foo4() { abort(); }
|
||||
-public:
|
||||
-#endif
|
||||
-
|
||||
virtual status_t reconnectAtOffset(off64_t offset) {
|
||||
return ERROR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
|
@ -1,60 +0,0 @@
|
||||
# Copyright 2012 Mozilla Foundation and Mozilla contributors
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
DEPTH = @DEPTH@
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE_NAME = omxpluginsony
|
||||
FORCE_SHARED_LIB = 1
|
||||
|
||||
# Don't use STL wrappers; this isn't Gecko code
|
||||
STL_FLAGS =
|
||||
|
||||
# must link statically with the CRT; this isn't Gecko code
|
||||
USE_STATIC_LIBS = 1
|
||||
|
||||
# Need to custom install OMX media plugin
|
||||
NO_INSTALL = 1
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifdef GNU_CXX
|
||||
# Turn off C++ 11 features due to conflicts with Android OS headers and char16_t definition
|
||||
CXXFLAGS += -std=gnu++98
|
||||
endif
|
||||
|
||||
INCLUDES += \
|
||||
-I$(srcdir)/../../../content/media/plugins \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
-L$(DEPTH)/media/omx-plugin/lib/ics/libutils \
|
||||
-lutils \
|
||||
-L$(DEPTH)/media/omx-plugin/lib/ics/libstagefright \
|
||||
-lstagefright \
|
||||
$(NULL)
|
||||
|
||||
INCLUDES += \
|
||||
-I$(srcdir)/../include/ics \
|
||||
-I$(srcdir)/../include/ics/media/stagefright/openmax \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(DLL_PREFIX)$(LIBRARY_NAME)$(DLL_SUFFIX)
|
||||
$(INSTALL) $< $(DEPTH)/dist/bin
|
||||
|
||||
libs:: $(PROGRAMS)
|
@ -1,10 +0,0 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
#define MOZ_STAGEFRIGHT_OFF_T off64_t
|
||||
#define MOZ_ANDROID_GB
|
||||
#define MOZ_ANDROID_HC
|
||||
#include <ui/egl/android_natives.h>
|
||||
#include "../OmxPlugin.cpp"
|
@ -1,9 +0,0 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
#define MOZ_STAGEFRIGHT_OFF_T off64_t
|
||||
#define MOZ_ANDROID_ICS
|
||||
#define MOZ_ANDROID_SONY_WORKAROUND
|
||||
#include "../OmxPlugin.cpp"
|
@ -1,15 +0,0 @@
|
||||
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
||||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
MODULE = 'omxpluginsony'
|
||||
NO_DIST_INSTALL = True
|
||||
|
||||
CPP_SOURCES += [
|
||||
'OmxPluginSony.cpp',
|
||||
]
|
||||
|
||||
LIBRARY_NAME = 'omxpluginsony'
|
||||
|
Loading…
Reference in New Issue
Block a user