summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media_player.c10
-rw-r--r--media_player.h3
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) :