mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc: add upstream patch
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
89208730bd
commit
f5df6ea5b5
@ -0,0 +1,26 @@
|
||||
From 5c2362940defe41799d9d46aad4d31c391f342e8 Mon Sep 17 00:00:00 2001
|
||||
From: Rainer Hochecker <fernetmenta@online.de>
|
||||
Date: Mon, 14 Apr 2014 18:05:34 +0200
|
||||
Subject: [PATCH] ActiveAE: check suspend state before creating a stream
|
||||
|
||||
---
|
||||
xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
|
||||
index a613004..e118294 100644
|
||||
--- a/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
|
||||
+++ b/xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAE.cpp
|
||||
@@ -2632,6 +2632,9 @@ bool CActiveAE::ResampleSound(CActiveAESound *sound)
|
||||
|
||||
IAEStream *CActiveAE::MakeStream(enum AEDataFormat dataFormat, unsigned int sampleRate, unsigned int encodedSampleRate, CAEChannelInfo channelLayout, unsigned int options)
|
||||
{
|
||||
+ if (IsSuspended())
|
||||
+ return NULL;
|
||||
+
|
||||
//TODO: pass number of samples in audio packet
|
||||
|
||||
AEAudioFormat format;
|
||||
--
|
||||
1.9.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user