Skip to content

Commit

Permalink
drop omxplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi committed May 7, 2019
1 parent d376fd7 commit 620eadd
Show file tree
Hide file tree
Showing 32 changed files with 39 additions and 5,980 deletions.
11 changes: 1 addition & 10 deletions addons/resource.language.en_gb/resources/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -7255,16 +7255,7 @@ msgctxt "#13457"
msgid "Prefer VAAPI render method"
msgstr ""

#: system/settings/settings.xml
msgctxt "#13458"
msgid "Allow hardware acceleration - OMXPlayer"
msgstr ""

#. Description of setting with label #13457 "Allow hardware acceleration (OMXPlayer)"
#: system/settings/settings.xml
msgctxt "#13459"
msgid "Use OMXPlayer for decoding of video files."
msgstr ""
#empty strings from id 13458 to 13459

#: system/settings/settings.xml
msgctxt "#13460"
Expand Down
9 changes: 0 additions & 9 deletions system/settings/rbp2.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<settings version="1">
<section id="player">
<category id="videoplayer">
<group id="3">
<setting id="videoplayer.useomxplayer">
<default>false</default>
</setting>
</group>
</category>
</section>
<section id="system">
<category id="display">
<group id="1">
Expand Down
6 changes: 0 additions & 6 deletions system/settings/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@
<default>true</default>
<control type="toggle" />
</setting>
<setting id="videoplayer.useomxplayer" type="boolean" label="13458" help="13459">
<requirement>HAS_OMXPLAYER</requirement>
<level>2</level>
<default>true</default>
<control type="toggle" />
</setting>
<setting id="videoplayer.usevtb" type="boolean" label="13429" help="36160">
<requirement>HasVTB</requirement>
<level>2</level>
Expand Down
12 changes: 12 additions & 0 deletions xbmc/cores/AudioEngine/Sinks/AESinkPi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
#define NUM_OMX_BUFFERS 2
#define AUDIO_PLAYBUFFER (0.1) // 100ms

#ifdef OMX_SKIP64BIT
static inline OMX_TICKS ToOMXTime(int64_t pts)
{
OMX_TICKS ticks;
ticks.nLowPart = pts;
ticks.nHighPart = pts >> 32;
return ticks;
}
#else
#define ToOMXTime(x) (x)
#endif

static const unsigned int PassthroughSampleRates[] = { 8000, 11025, 16000, 22050, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000 };

CAEDeviceInfo CAESinkPi::m_info;
Expand Down
3 changes: 2 additions & 1 deletion xbmc/cores/AudioEngine/Sinks/AESinkPi.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#include "cores/AudioEngine/Interfaces/AESink.h"
#include "cores/AudioEngine/Utils/AEDeviceInfo.h"

#include "cores/omxplayer/OMXAudio.h"
#include "platform/linux/OMXCore.h"
#include "platform/linux/XTimeUtils.h"

class CAESinkPi : public IAESink
{
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/DVDCodecs/Video/MMALCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void CMMALVideo::dec_output_port_cb(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buf
// we don't keep up when running at 60fps in the background so switch to half rate
if (m_fps > 40.0f && !CServiceBroker::GetWinSystem()->GetGfxContext().IsFullScreenVideo() && !(m_num_decoded & 1))
wanted = false;
if (CServiceBroker::GetSettingsComponent()->GetAdvancedSettings()->m_omxDecodeStartWithValidFrame && (buffer->flags & MMAL_BUFFER_HEADER_FLAG_CORRUPTED))
if ((buffer->flags & MMAL_BUFFER_HEADER_FLAG_CORRUPTED))
wanted = false;
m_num_decoded++;
CLog::Log(LOGDEBUG, LOGVIDEO,
Expand Down

0 comments on commit 620eadd

Please sign in to comment.