baseparse: 0 converts to 0 by default

This commit is contained in:
Mark Nauwelaerts 2010-09-17 17:19:37 +02:00 committed by Tim-Philipp Müller
parent 3c656232eb
commit b51b5d4b29

View file

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