2018-05-22, 16:29
(2018-05-22, 12:34)Catscrash Wrote: I contacted Yatse developer, to get to the root of the kodi crash when browsing folders with srt-files in yatse.Presumably the subs have an extension of "srt" or similar? And displaying an "srt" file as an image is unlikely to be useful, so I'd have thought yatse could handle this better.
Turns out, Kodi returns mimetype "application/octet-stream" for srt-files, which it also uses for image files, so yatse tries to access the file as an image, which leads to the kodi crash since the currently used ffmpeg version.
How can we make sure, that kodi in the future either returns a proper mimetype, or ffmpeg handles it better (like before build 20171020)?
Sure, kodi shouldn't crash, but equally you shouldn't ask to display non-image files as an image.
Note: octet-stream just means binary data. You should other means (such as extension) to determine the type of binary data. See here