[PATCH v2 7/7] amstream: Return error when calling SetFormat with allocated samples.