Skip to content

Commit

Permalink
fixed broken build from 5ca72db
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla committed Jul 28, 2013
1 parent 975adef commit d274a2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/amlplayer/AMLPlayer.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1800,7 +1800,7 @@ int CAMLPlayer::UpdatePlayerInfo(int pid, player_info_t *info)
// we get called when status changes or after update time expires. // we get called when status changes or after update time expires.
// static callback from libamplayer, since it does not pass an opaque, // static callback from libamplayer, since it does not pass an opaque,
// we have to retreve our player class reference the hard way. // we have to retreve our player class reference the hard way.
CAMLPlayer *amlplayer = boost::dynamic_cast<CAMLPlayer*>(g_application.m_pPlayer); boost::shared_ptr<CAMLPlayer> amlplayer = boost::dynamic_pointer_cast<CAMLPlayer>(g_application.m_pPlayer);
if (amlplayer) if (amlplayer)
{ {
CSingleLock lock(amlplayer->m_aml_state_csection); CSingleLock lock(amlplayer->m_aml_state_csection);
Expand Down

0 comments on commit d274a2d

Please sign in to comment.