[matroska] r914 - trunk/DvdMenuXtractor
| Newsgroups | gmane.comp.multimedia.matroska.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: robux4
Date: 2004-10-24 18:06:51 +0400 (Sun, 24 Oct 2004)
New Revision: 914
Modified:
trunk/DvdMenuXtractor/IFOFile.cpp
Log:
fix a potential crash
Modified: trunk/DvdMenuXtractor/IFOFile.cpp
===================================================================
--- trunk/DvdMenuXtractor/IFOFile.cpp 2004-10-24 13:24:57 UTC (rev 913)
+++ trunk/DvdMenuXtractor/IFOFile.cpp 2004-10-24 14:06:51 UTC (rev 914)
@@ -98,6 +98,7 @@
m_languageList.Clear();
IfoContent *_ifo = m_ifos.GetIfoTitle(title);
+ assert(_ifo != NULL);
for(int i=0; i < _ifo->Handle().pgci_ut->nr_of_lus; i++)
{
pgci_lu_t& lu = _ifo->Handle().pgci_ut->lu[i];
@@ -121,9 +122,12 @@
void IFOFile::ClearLanguageSelection()
{
IfoContent *_ifo = m_ifos.GetIfoTitle(0);
- for(int i = 0; i < _ifo->Handle().pgci_ut->nr_of_lus; i++)
+ if (_ifo)
{
- m_SelectionTab[i] = 0;
+ for(int i = 0; i < _ifo->Handle().pgci_ut->nr_of_lus; i++)
+ {
+ m_SelectionTab[i] = 0;
+ }
}
}