Why not replace the entire condition with pItem->IsVideo() ?