Skip to content

Commit

Permalink
[rbp] fixed move bcm_host_deinit after omx deinit. treat libbcm_host …
Browse files Browse the repository at this point in the history
…wrapper as external library. we are already linked against libbcm_host.
  • Loading branch information
huceke committed Aug 27, 2012
1 parent d9d0e78 commit 6bf5c0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion xbmc/linux/DllBCM.h
Expand Up @@ -37,6 +37,8 @@ extern "C" {
#include "DynamicDll.h"
#include "utils/log.h"

#define USE_EXTERNAL_LIBBCM_HOST 1

////////////////////////////////////////////////////////////////////////////////////////////

class DllBcmHostInterface
Expand Down Expand Up @@ -80,7 +82,7 @@ class DllBcmHostInterface
EDID_AudioSampleRate fs, uint32_t bitrate) = 0;
};

#if (defined USE_EXTERNAL_LIBBCM_HOST)
#if defined(USE_EXTERNAL_LIBBCM_HOST)
class DllBcmHost : public DllDynamic, DllBcmHostInterface
{
public:
Expand Down
4 changes: 2 additions & 2 deletions xbmc/linux/RBP.cpp
Expand Up @@ -63,11 +63,11 @@ void CRBP::LogFirmwareVerison()

void CRBP::Deinitialize()
{
m_DllBcmHost->bcm_host_deinit();

if(m_omx_initialized)
m_OMX->Deinitialize();

m_DllBcmHost->bcm_host_deinit();

if(m_initialized)
m_DllBcmHost->Unload();

Expand Down

0 comments on commit 6bf5c0e

Please sign in to comment.