fix AVObject subclass usage.

Signed-off-by: Sharl <amoiz.shine@gmail.com>