Hello,
I'm studying the code, because I want to add transcode support to minidlna (IMO the existing patch is not flexible enough + it doesn't support image transcoding). During that I found a code that seems a bit strange to me. It is the code around the line 930 in metadata.c:
If the containers different than ASF/TS/PS/MP4 really needs to be skipped, the current code may not cover all possible containers. In that case doing the check the other way round (check explicitly if it's one of the containers specified by DLNA spec and otherwise use goto video_no_dlna) would probably work better.
I also tried changing the last condition to if(! m.mime ), and it still works with the testing files I use, as my TV supports both mkv and flv. Maybe this check is not needed at all, because some clients supports more containers than the ones listed in the DLNA spec.
Thanks,
Lukas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm studying the code, because I want to add transcode support to minidlna (IMO the existing patch is not flexible enough + it doesn't support image transcoding). During that I found a code that seems a bit strange to me. It is the code around the line 930 in metadata.c:
If the containers different than ASF/TS/PS/MP4 really needs to be skipped, the current code may not cover all possible containers. In that case doing the check the other way round (check explicitly if it's one of the containers specified by DLNA spec and otherwise use goto video_no_dlna) would probably work better.
I also tried changing the last condition to if(! m.mime ), and it still works with the testing files I use, as my TV supports both mkv and flv. Maybe this check is not needed at all, because some clients supports more containers than the ones listed in the DLNA spec.
Thanks,
Lukas