filter_chain: fix potential undefined behavior

If p_chain->first is NULL, we should not take the address of first->filter.
vdpau: fix redundant const qualifier

Was meant as constant pointer and constant pointed data.
es_out: fix potential division by zero