baseparse: 0 converts to 0 by default

This commit is contained in:
Mark Nauwelaerts 2010-09-17 17:19:37 +02:00
parent 2e7de32849
commit ea7e051827

View file

@ -808,6 +808,11 @@ gst_base_parse_convert_default (GstBaseParse * parse,
return TRUE; return TRUE;
} }
if (G_UNLIKELY (src_value == 0)) {
*dest_value = 0;
return TRUE;
}
/* need at least some frames */ /* need at least some frames */
if (!parse->priv->framecount) if (!parse->priv->framecount)
return FALSE; return FALSE;