diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2010-06-06 13:39:06 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2010-06-06 13:39:06 +0400 |
commit | c13c2852dcfb94731c9aae59275dbd0f34045dca (patch) | |
tree | 363791d8c1ff588720872fd62d6e7483313f6cb0 /src/apps/mplayerc/mplayerc.cpp | |
parent | f44237d2092a091feb5ec0c10db4d8458e040b6d (diff) |
Changed : "Pause" message in OSD stay until play command
Fixed : improved DVD resume
Added : debug messages with OSD
Added : command line switch to set http webserver port
Changed : background for Shockwave, hack to run in "show all" mode
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2011 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/mplayerc.cpp')
-rw-r--r-- | src/apps/mplayerc/mplayerc.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/apps/mplayerc/mplayerc.cpp b/src/apps/mplayerc/mplayerc.cpp index b37fe47c5..92aed467e 100644 --- a/src/apps/mplayerc/mplayerc.cpp +++ b/src/apps/mplayerc/mplayerc.cpp @@ -1385,6 +1385,8 @@ CMPlayerCApp::Settings::Settings() , MRU(0, _T("Recent File List"), _T("File%d"), 20)
, MRUDub(0, _T("Recent Dub List"), _T("Dub%d"), 20)
, hAccel(NULL)
+ , nCmdlnWebServerPort(-1)
+ , ShowDebugInfo(false)
{
}
@@ -2724,7 +2726,11 @@ void CMPlayerCApp::Settings::ExtractDVDStartPos(CString& strParam) break;
case 1 :
if (token.Find(':') >0)
+ {
_stscanf_s(token, _T("%02d:%02d:%02d.%03d"), &DVDPosition.bHours, &DVDPosition.bMinutes, &DVDPosition.bSeconds, &DVDPosition.bFrames);
+ /* Hack by Ron. If bFrames >= 30, PlayTime commands fail due to invalid arg */
+ DVDPosition.bFrames = 0;
+ }
else
lDVDChapter = token.IsEmpty() ? 0 : (ULONG)_wtol(token);
break;
@@ -2833,6 +2839,16 @@ void CMPlayerCApp::Settings::ParseCommandLine(CAtlList<CString>& cmdln) CMiniDump::Enable();
}
else if(sw == _T("pns")) sPnSPreset = cmdln.GetNext(pos);
+ else if(sw == _T("webport") && pos)
+ {
+ int tmpport = _tcstol(cmdln.GetNext(pos), NULL, 10);
+ if ( tmpport >= 0 && tmpport <= 65535 )
+ nCmdlnWebServerPort = tmpport;
+ }
+ else if(sw == _T("debug"))
+ {
+ ShowDebugInfo = true;
+ }
else if(sw == _T("audiorender") && pos)
{
SetAudioRender(_ttoi(cmdln.GetNext(pos)));
|