search: All search results display the same mime-type regardless of actual mime-type.

Issue #40 resolved
Trek Hopton created an issue

When a search is made, all the results display the same mime-type in the download link, even if the mime type is not actually the same. For example when the first half of the results are MJPEG and second half of the results are H264, all of the results will be shown to be MJPEG. The play link also has the same behaviour.

This is because the Type is only read from the first mtsMedia result in the searchHandler function in search.go.

There should be a Type given for each of the search results, it shouldn’t be presumed that all of the data will be of the same type.

Comments (2)

  1. Trek Hopton reporter

    Part of the issue has been addressed in PR #97 which fixed the fact that ADPCM was being set as the media type for both ADPCM and PCM media, however vidgrind still only displays the first clip’s media type.

  2. Log in to comment