xbmc/xbmc — pull request #772 by anssih (2012-03-16 19:55:13+00:00)
Title: fixed: don't load non-matching archived subtitles (fixes #12719)

Commit ea87f7e8574430 ("removed subtitle caching as it was only needed
on xbox, partialy takes care of #9736.") mistakenly removed the filename
check for subtitles in zip or rar archives, causing any subtitle file
inside archives to be loaded.

Fix that by re-adding a filename check into
CUtil::ScanArchiveForSubtitles().

Seems rather straight-forward, but I'm making this a pull request just in case as we are so close to a release.This fixes the regression where XBMC would load any randomly named subtitle from any randomly named rar in the video directory, instead of only restricting to matching subtitles like previously.

Any objections?