From 26e0cb6ee3fed1765e41c67ebd09dc137d176fb5 Mon Sep 17 00:00:00 2001 From: Underground78 Date: Sat, 11 May 2013 12:04:51 +0200 Subject: DVBSub: Add an assert. --- src/Subtitles/DVBSub.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Subtitles/DVBSub.cpp b/src/Subtitles/DVBSub.cpp index 9d5095871..b109252e2 100644 --- a/src/Subtitles/DVBSub.cpp +++ b/src/Subtitles/DVBSub.cpp @@ -630,6 +630,7 @@ HRESULT CDVBSub::ParseObject(CGolombBuffer& gb, WORD wSegLength) HRESULT CDVBSub::EnqueuePage(REFERENCE_TIME rtStop) { + ASSERT(m_pCurrentPage != nullptr); if (m_pCurrentPage->rtStart < rtStop && m_pCurrentPage->rtStop > rtStop) { m_pCurrentPage->rtStop = rtStop; } -- cgit v1.2.3