QSV: hotfix.
QSV: restore lost functionality.
QSV: move more stuff to qsv_common.