Skip to content

Commit

Permalink
Merge pull request #1895 from opdenkamp/libcec2.0.5
Browse files Browse the repository at this point in the history
[cec] bump to libCEC 2.0.5
  • Loading branch information
Lars Op den Kamp committed Dec 6, 2012
2 parents a6821e5 + f45b8e8 commit 130e8f7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion project/BuildDependencies/scripts/libcec_d.txt
@@ -1,3 +1,3 @@
; filename source of the file

libcec-2.0.3.zip http://mirrors.xbmc.org/build-deps/win32/
libcec-2.0.5.zip http://mirrors.xbmc.org/build-deps/win32/
4 changes: 2 additions & 2 deletions tools/android/depends/libcec/Makefile
Expand Up @@ -3,15 +3,15 @@ DEPS= ../Makefile.include android.patch Makefile

# lib name, version
LIBNAME=libcec
VERSION=1.5.2
VERSION=2.0.5
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz

# configuration settings
CONFIGURE=./configure --prefix=$(PREFIX) --host=$(HOST) \
ac_cv_search_dlopen=yes

LIBDYLIB=$(PLATFORM)/src/lib/.libs/libcec.so.1.0.5
LIBDYLIB=$(PLATFORM)/src/lib/.libs/libcec.so.2.0.0

all: .installed-$(PLATFORM)

Expand Down
2 changes: 1 addition & 1 deletion tools/darwin/depends/libcec/Makefile
Expand Up @@ -3,7 +3,7 @@ include ../config.site.mk

# lib name, version
LIBNAME=libcec
VERSION=2.0.3
VERSION=2.0.5
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz

Expand Down
13 changes: 6 additions & 7 deletions xbmc/peripherals/devices/PeripheralCecAdapter.cpp
Expand Up @@ -379,13 +379,12 @@ bool CPeripheralCecAdapter::OpenConnection(void)
libcec_configuration config;
if (m_cecAdapter->GetCurrentConfiguration(&config))
{
// send wakeup commands
if (!config.wakeDevices.IsEmpty())
m_cecAdapter->PowerOnDevices(CECDEVICE_BROADCAST);

// make xbmc the active source
if (config.bActivateSource == 1)
m_cecAdapter->SetActiveSource();
// wake devices
for (uint8_t iDevice = CECDEVICE_TV; iDevice < CECDEVICE_BROADCAST; iDevice++)
{
if ((config.bActivateSource == 0 || iDevice != CECDEVICE_TV) && config.wakeDevices.IsSet((cec_logical_address)iDevice))
m_cecAdapter->PowerOnDevices((cec_logical_address)iDevice);
}

// update the local configuration
CSingleLock lock(m_critSection);
Expand Down

0 comments on commit 130e8f7

Please sign in to comment.