From 0c6a43ffeeb2221f56785ac99cca7bf21b2b7754 Mon Sep 17 00:00:00 2001 From: Rory Hool Date: Mon, 12 May 2025 09:24:04 -0400 Subject: [PATCH] Revert throw removal in FindBytesProperty from 7104b13ebf54813c221d9f64d941734fc7e950ad --- src/mp4file.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mp4file.cpp b/src/mp4file.cpp index eb3ebdc..c4d7dca 100644 --- a/src/mp4file.cpp +++ b/src/mp4file.cpp @@ -873,14 +873,12 @@ void MP4File::FindBytesProperty(const char* name, if (!FindProperty(name, ppProperty, pIndex)) { ostringstream msg; msg << "no such property " << name; - log.errorf( "MP4File::FindBytesProperty - %s", msg.str().c_str() ); - return; + throw new Exception(msg.str(), __FILE__, __LINE__, __FUNCTION__); } if ((*ppProperty)->GetType() != BytesProperty) { ostringstream msg; msg << "type mismatch - property " << name << " - type " << (*ppProperty)->GetType(); - log.errorf( "MP4File::FindBytesProperty - %s", msg.str().c_str() ); - return; + throw new Exception(msg.str(), __FILE__, __LINE__, __FUNCTION__); } }