report if no palette

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6482 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-06-21 16:38:53 +00:00
parent aeab39c7e6
commit 4839e62438
1 changed files with 6 additions and 0 deletions

View File

@ -69,6 +69,12 @@ static int config(struct vf_instance_s* vf,
static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
mp_image_t *dmpi;
if (!mpi->planes[1])
{
mp_msg(MSGT_VFILTER,MSGL_V,"[%s] no palette given\n",vf->info->name);
return;
}
// hope we'll get DR buffer:
dmpi=vf_get_image(vf->next,vf->priv->fmt,