Skip to content
Browse files

[rbp] force omxplayer to be the one and only player. The ALSA kernel …

…driver is to buggy on the PI. TheUni we can clear that mess up with your player selection.
  • Loading branch information...
1 parent 42171f4 commit 331261771d50d63adbfd24f9c0f3a8c1591d8b7f @huceke huceke committed
View
4 xbmc/cores/omxplayer/omxplayer_advancedsettings.xml
@@ -3,4 +3,8 @@
<defaultplayer>omxplayer</defaultplayer>
<defaultdvdplayer>omxplayer</defaultdvdplayer>
</video>
+ <audio>
+ <defaultplayer>omxplayer</defaultplayer>
+ <streamsilence>false</streamsilence>
+ </audio>
</advancedsettings>
View
12 xbmc/cores/playercorefactory/PlayerCoreConfig.h
@@ -77,8 +77,20 @@ friend class CPlayerCoreFactory;
switch(m_eCore)
{
case EPC_MPLAYER:
+ // TODO: this hack needs removal until we have a better player selection
+#if defined(HAS_OMXPLAYER)
+ case EPC_DVDPLAYER:
+ pPlayer = new COMXPlayer(callback);
+ CLog::Log(LOGINFO, "Created player %s for core %d / OMXPlayer forced as DVDPlayer", "OMXPlayer", m_eCore);
+ break;
+ case EPC_PAPLAYER:
+ pPlayer = new COMXPlayer(callback);
+ CLog::Log(LOGINFO, "Created player %s for core %d / OMXPlayer forced as PAPLayer", "OMXPlayer", m_eCore);
+ break;
+#else
case EPC_DVDPLAYER: pPlayer = new CDVDPlayer(callback); break;
case EPC_PAPLAYER: pPlayer = new PAPlayer(callback); break;
+#endif
case EPC_EXTPLAYER: pPlayer = new CExternalPlayer(callback); break;
#if defined(HAS_AMLPLAYER)
case EPC_AMLPLAYER: pPlayer = new CAMLPlayer(callback); break;
View
6 xbmc/cores/playercorefactory/PlayerCoreFactory.h
@@ -37,13 +37,13 @@ enum EPLAYERCORES
EPC_DVDPLAYER,
EPC_MPLAYER,
EPC_PAPLAYER,
- EPC_EXTPLAYER
#if defined(HAS_AMLPLAYER)
- , EPC_AMLPLAYER
+ EPC_AMLPLAYER,
#endif
#if defined(HAS_OMXPLAYER)
- , EPC_OMXPLAYER
+ EPC_OMXPLAYER,
#endif
+ EPC_EXTPLAYER
};
typedef unsigned int PLAYERCOREID;

0 comments on commit 3312617

Please sign in to comment.
Something went wrong with that request. Please try again.