Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2013-01-05 14:17:41 +0400
committerUnderground78 <underground78@users.sourceforge.net>2013-01-05 14:18:04 +0400
commit4334a09783109a1a830f1df0ed432cc995434639 (patch)
tree6b32d8ad418b150b3b5782e0dedb227f1d94b445 /src/filters/parser/AviSplitter
parent0a403c86c15fb603f0205bae6290b5ec1c4c3818 (diff)
AviSplitter: Fix a crash when closing the file while re-indexing.
That crash was visible only if the user seeked while re-indexing a broken file and then aborted the re-indexing. Fixes #2805.
Diffstat (limited to 'src/filters/parser/AviSplitter')
-rw-r--r--src/filters/parser/AviSplitter/AviSplitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters/parser/AviSplitter/AviSplitter.cpp b/src/filters/parser/AviSplitter/AviSplitter.cpp
index 445a80ed6..dfc607c52 100644
--- a/src/filters/parser/AviSplitter/AviSplitter.cpp
+++ b/src/filters/parser/AviSplitter/AviSplitter.cpp
@@ -508,7 +508,7 @@ void CAviSplitterFilter::DemuxSeek(REFERENCE_TIME rt)
for (unsigned int j = 0; j < m_pFile->m_strms.GetCount(); ++j) {
CAviFile::strm_t* s = m_pFile->m_strms[j];
- if (s->IsRawSubtitleStream()) {
+ if (s->IsRawSubtitleStream() || s->cs.IsEmpty()) {
continue;
}