fix media output correct way

Signed-off-by: Willi Ye <williye97@gmail.com>