File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/AvTranscoder/properties Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -148,15 +148,10 @@ std::string FileProperties::getFormatLongName() const
148
148
std::string FileProperties::getFormatMimeType () const
149
149
{
150
150
#if LIBAVFORMAT_VERSION_MAJOR <= 55
151
- LOG_WARN (" Cannot get mime type format of '" << getFilename ()
152
- << " ' because your libavformat library has a major version <= 55." )
153
- return " not available" ;
151
+ throw std::runtime_error (" cannot get mime type format: libavformat library has a major version <= 55." );
154
152
#else
155
153
if (_avFormatContext->iformat ->mime_type == NULL )
156
- {
157
- LOG_WARN (" Unknown demuxer format mime type of '" << getFilename () << " '." )
158
- return " " ;
159
- }
154
+ throw std::runtime_error (" Unknown demuxer format mime type" );
160
155
return std::string (_avFormatContext->iformat ->mime_type );
161
156
#endif
162
157
}
You can’t perform that action at this time.
0 commit comments