diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-10-09 16:38:02 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-10-09 16:38:02 +0400 |
commit | 70d72e66e72a23d544fd0ba99e3db8c7c7a3b31f (patch) | |
tree | 71dc60458c2762c44d44f7fc96ed552c93128f4a /src/apps/mplayerc/Ifo.cpp | |
parent | bcbe18d32d188d34093608e6aed5ab3309c2f86e (diff) |
Fix : UOP removed from first PGC
Fix : DVD remember position with /dvdpos option
Fix : Don't play pictures with "Open folder" action
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@831 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/Ifo.cpp')
-rw-r--r-- | src/apps/mplayerc/Ifo.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/apps/mplayerc/Ifo.cpp b/src/apps/mplayerc/Ifo.cpp index be4e909f6..39bb6c763 100644 --- a/src/apps/mplayerc/Ifo.cpp +++ b/src/apps/mplayerc/Ifo.cpp @@ -138,6 +138,14 @@ void CIfo::RemovePgciUOPs (uint8_t *ptr) }
}
+CIfo::pgc_t* CIfo::GetFirstPGC()
+{
+ if (m_pBuffer)
+ return (pgc_t*) (m_pBuffer + 0x0400);
+ else
+ return NULL;
+}
+
CIfo::pgc_t* CIfo::GetPGCI(const int title)
{
CIfo::pgci_sub_t *pgci_sub;
@@ -208,10 +216,12 @@ bool CIfo::RemoveUOPs() {
if (m_pPGCI)
{
+ pgc_t* pgc = GetFirstPGC();
+
+ if (pgc) pgc->prohibited_ops = 0;
+
for (int i=0; i<be2me_16(m_pPGCI->num); i++)
{
- pgc_t* pgc;
-
if (pgc = GetPGCI(i))
RemovePgciUOPs ((uint8_t*)pgc);
}
|