Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

IOS-12597: Do not parse smil if creating document failed #313

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ePub3/ePub/media-overlays_smil_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ class Timer
if (!bool(doc))
{
HandleError(EPUBError::MediaOverlayCannotParseSMILXML, _Str("Cannot parse XML: ", item->Href().c_str()));

return 0;
}

#if EPUB_COMPILER_SUPPORTS(CXX_INITIALIZER_LISTS)
Expand Down