diff options
author | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-26 00:56:50 +0000 |
---|---|---|
committer | lvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b> | 2004-10-26 00:56:50 +0000 |
commit | c0be06a6d528738699a41bcf5fd7ee9fb68a78fd (patch) | |
tree | 0cd7a83a57c6bd10a949aaea59930e1a46c2be4b | |
parent | 5cbca2e0dcfb32cd6a326205f93d66c8716dbdda (diff) | |
download | vdr-plugin-muggle-c0be06a6d528738699a41bcf5fd7ee9fb68a78fd.tar.gz vdr-plugin-muggle-c0be06a6d528738699a41bcf5fd7ee9fb68a78fd.tar.bz2 |
Tested resume feature
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@246 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r-- | TODO | 1 | ||||
-rwxr-xr-x | mg_content_interface.c | 2 | ||||
-rwxr-xr-x | mg_content_interface.h | 2 | ||||
-rw-r--r-- | muggle.c | 4 | ||||
-rw-r--r-- | vdr_menu.c | 1 | ||||
-rw-r--r-- | vdr_player.c | 7 | ||||
-rw-r--r-- | vdr_player.h | 2 | ||||
-rw-r--r-- | vdr_setup.h | 4 |
8 files changed, 13 insertions, 10 deletions
@@ -40,6 +40,7 @@ - escape query strings - mgPlayer used what for? - Could save IP/host name and associate last playlist/index loaded + - Move differences 1.3.7+- to link level \subsection urgentcontent Content handling - Save on exit diff --git a/mg_content_interface.c b/mg_content_interface.c index d017997..79dbd1f 100755 --- a/mg_content_interface.c +++ b/mg_content_interface.c @@ -117,7 +117,7 @@ mgContentItem* mgTracklist::getItem(unsigned int position) return *( m_list.begin() + position); } -bool mgTracklist::remove(int position) +bool mgTracklist::remove(unsigned position) { bool result = false; diff --git a/mg_content_interface.h b/mg_content_interface.h index c127d03..38edffa 100755 --- a/mg_content_interface.h +++ b/mg_content_interface.h @@ -325,7 +325,7 @@ class mgTracklist /*! * \brief remove all occurences of item */ - virtual bool remove(int position); // remove item at position + virtual bool remove(unsigned position); // remove item at position }; /*! @@ -217,12 +217,12 @@ bool mgMuggle::SetupParse(const char *Name, const char *Value) } -static void mgMuggle::setResumeIndex( unsigned index ) +void mgMuggle::setResumeIndex( unsigned index ) { s_resume_idx = index; } -static unsigned mgMuggle::getResumeIndex( ) +unsigned mgMuggle::getResumeIndex( ) { return s_resume_idx; } @@ -25,6 +25,7 @@ #include <vdr/skins.h> #endif +#include "muggle.h" #include "vdr_menu.h" #include "vdr_player.h" #include "i18n.h" diff --git a/vdr_player.c b/vdr_player.c index 571743c..322801e 100644 --- a/vdr_player.c +++ b/vdr_player.c @@ -37,6 +37,7 @@ #include <recording.h> #include <status.h> +#include "muggle.h" #include "vdr_player.h" #include "vdr_decoder.h" #include "vdr_config.h" @@ -185,7 +186,7 @@ protected: virtual void Action(void); public: - mgPCMPlayer(mgPlaylist *plist, int first); + mgPCMPlayer(mgPlaylist *plist, unsigned first); virtual ~mgPCMPlayer(); bool Active() { return m_active; } @@ -208,7 +209,7 @@ public: mgPlaylist *getPlaylist () { return m_playlist; } }; -mgPCMPlayer::mgPCMPlayer(mgPlaylist *plist, int first) +mgPCMPlayer::mgPCMPlayer(mgPlaylist *plist, unsigned first) : cPlayer( the_setup.BackgrMode? pmAudioOnly: pmAudioOnlyBlack ), m_first( first ) { @@ -281,7 +282,7 @@ void mgPCMPlayer::Activate(bool on) } } -void mgPCMPlayer::NewPlaylist( mgPlaylist *plist, int start ) +void mgPCMPlayer::NewPlaylist( mgPlaylist *plist, unsigned start ) { MGLOG( "mgPCMPlayer::NewPlaylist" ); diff --git a/vdr_player.h b/vdr_player.h index 70e8b3c..d71149e 100644 --- a/vdr_player.h +++ b/vdr_player.h @@ -74,7 +74,7 @@ public: * \param plist - the playlist to be played * \param first - the index where to start the playlist */ - mgPlayerControl(mgPlaylist *plist, int first); + mgPlayerControl(mgPlaylist *plist, unsigned first); /*! \brief destructor */ diff --git a/vdr_setup.h b/vdr_setup.h index b88a3ac..1c59235 100644 --- a/vdr_setup.h +++ b/vdr_setup.h @@ -52,8 +52,8 @@ public: bool GdCompatibility; char *ToplevelDir; - bool trackview; - bool progressview; + int trackview; + int progressview; char PathPrefix[MAX_STRING_LEN]; |