From 5c19c2ca072932959be0e7de1601490e9f0cfa88 Mon Sep 17 00:00:00 2001 From: Rafael Diniz Date: Tue, 5 Sep 2023 00:24:07 +0100 Subject: [PATCH] Media Settings node can be named "application/x-ncl-settings" - allow it. --- lib/Parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Parser.cpp b/lib/Parser.cpp index eac767d4f..ab8d9276b 100644 --- a/lib/Parser.cpp +++ b/lib/Parser.cpp @@ -3929,8 +3929,8 @@ ParserState::pushMedia (ParserState *st, ParserElt *elt) // case is a new Media else { - // case is an MediaSettings - if (type == "application/x-ginga-settings") + // case it is a MediaSettings + if (type == "application/x-ginga-settings" || type == "application/x-ncl-settings") { Media *tmpMedia = nullptr; @@ -3968,7 +3968,7 @@ ParserState::pushMedia (ParserState *st, ParserElt *elt) media->addAlias (id, parent); st->referMapAdd (id, media); } - // case os other Media type + // case of other Media types else { // case src filled