summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-01-09 20:33:52 +0000
committerwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-01-09 20:33:52 +0000
commit9fa7b8aa75fc43291ade4daaeb0faf7f2e22f4c1 (patch)
tree97c06ac669a48dfd5e4c25f11b4a4a4579811f2a
parentcb8e8687bc484541aba272d63fd01656b78b0d64 (diff)
downloadvdr-plugin-muggle-9fa7b8aa75fc43291ade4daaeb0faf7f2e22f4c1.tar.gz
vdr-plugin-muggle-9fa7b8aa75fc43291ade4daaeb0faf7f2e22f4c1.tar.bz2
merge patch to compile with 1.3.18
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@337 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r--vdr_menu.c13
-rw-r--r--vdr_player.c12
2 files changed, 22 insertions, 3 deletions
diff --git a/vdr_menu.c b/vdr_menu.c
index fc719a7..6871eb7 100644
--- a/vdr_menu.c
+++ b/vdr_menu.c
@@ -268,11 +268,18 @@ mgMainMenu::mgMainMenu ():cOsdMenu ("")
// Read commands for collections in etc. /video/muggle/playlist_commands.conf
external_commands = new cCommands ();
- char *
- cmd_file = (char *) AddDirectory (cPlugin::ConfigDirectory ("muggle"),
+#if VDRVERSNUM >= 10318
+ cString cmd_file = AddDirectory (cPlugin::ConfigDirectory ("muggle"),
"playlist_commands.conf");
- mgDebug (1, "mgMuggle::Start: Looking for file %s", cmd_file);
+ mgDebug (1, "mgMuggle::Start: 10318 Looking for file %s", *cmd_file);
+ bool have_cmd_file = external_commands->Load (*cmd_file);
+#else
+ const char *
+ cmd_file = (const char *) AddDirectory (cPlugin::ConfigDirectory ("muggle"),
+ "playlist_commands.conf");
+ mgDebug (1, "mgMuggle::Start: 10317 Looking for file %s", cmd_file);
bool have_cmd_file = external_commands->Load ((const char *) cmd_file);
+#endif
if (!have_cmd_file)
{
diff --git a/vdr_player.c b/vdr_player.c
index b281746..1375a5e 100644
--- a/vdr_player.c
+++ b/vdr_player.c
@@ -643,7 +643,11 @@ mgDebug( 1, "mgPCMPlayer::Action: music file is %s", filename.c_str() );
if (m_pframe)
{
+#if VDRVERSNUM >= 10318
+ int w = PlayPes (p, pc);
+#else
int w = PlayVideo (p, pc);
+#endif
if (w > 0)
{
p += w;
@@ -1111,7 +1115,11 @@ pes_header[6] = 0x0f;
}
memcpy(&pes_header[6 + ptslen], data, payload_size);
+#if VDRVERSNUM >= 10318
+PlayPes(pes_header, 6 + ptslen + payload_size);
+#else
PlayVideo(pes_header, 6 + ptslen + payload_size);
+#endif
len -= payload_size;
data += payload_size;
@@ -1325,7 +1333,11 @@ mgPlayerControl::ShowContents ()
{
int len = player->getCurrent ()->getDuration ();
asprintf (&buf, "Length:\t%s",
+#if VDRVERSNUM >= 10318
+ *IndexToHMSF (SecondsToFrames (len)));
+#else
IndexToHMSF (SecondsToFrames (len)));
+#endif
m_menu->SetItem (buf, 4, false, false);
free (buf);
}