diff options
author | phintuka <phintuka> | 2007-07-18 12:40:07 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-07-18 12:40:07 +0000 |
commit | 3c57720c1ccb9626c4b3c31bd7b4e2a298baa6be (patch) | |
tree | 6d27e33c08c97cf03043e84932209fd76e1ca360 | |
parent | e7f180406fac657bf432732fc03275517500b335 (diff) | |
download | xineliboutput-3c57720c1ccb9626c4b3c31bd7b4e2a298baa6be.tar.gz xineliboutput-3c57720c1ccb9626c4b3c31bd7b4e2a298baa6be.tar.bz2 |
Generate cStatus:Replaying message when DVD title changes
(Patch from Petri Helin)
-rw-r--r-- | media_player.c | 10 | ||||
-rw-r--r-- | media_player.h | 3 |
2 files changed, 11 insertions, 2 deletions
diff --git a/media_player.c b/media_player.c index 46adb0b3..026c622d 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.31 2007-06-21 12:40:22 phintuka Exp $ + * $Id: media_player.c,v 1.32 2007-07-18 12:40:07 phintuka Exp $ * */ @@ -867,6 +867,14 @@ eOSState cXinelibDvdPlayerControl::ProcessKey(eKeys Key) Hide(); return osEnd; } + else { + const char *ti = cXinelibDevice::Instance().GetMetaInfo(miTitle); + if (ti && ti[0] && (!m_CurrentDVDTitle || !strstr(m_CurrentDVDTitle, ti))) { + memset(m_CurrentDVDTitle, 0, 63); + strn0cpy(m_CurrentDVDTitle, ti, 63); + MsgReplaying(m_CurrentDVDTitle, NULL); + } + } if(Menu) { if(Key == kRed) diff --git a/media_player.h b/media_player.h index 08cca783..344997e0 100644 --- a/media_player.h +++ b/media_player.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.h,v 1.13 2007-06-21 09:19:56 phintuka Exp $ + * $Id: media_player.h,v 1.14 2007-07-18 12:40:07 phintuka Exp $ * */ @@ -67,6 +67,7 @@ class cXinelibDvdPlayerControl : public cXinelibPlayerControl { private: cDvdMenu *Menu; + char m_CurrentDVDTitle[63]; public: cXinelibDvdPlayerControl(const char *File) : |