structure: error out when trying to fixate a fraction near an invalid target

This commit is contained in:
Vincent Penquerc'h 2014-04-09 17:01:01 +01:00 committed by Tim-Philipp Müller
parent 03a093c97c
commit d854327df1

View file

@ -2665,6 +2665,7 @@ gst_structure_fixate_field_nearest_fraction (GstStructure * structure,
g_return_val_if_fail (gst_structure_has_field (structure, field_name), FALSE);
g_return_val_if_fail (IS_MUTABLE (structure), FALSE);
g_return_val_if_fail (target_denominator != 0, FALSE);
value = gst_structure_get_value (structure, field_name);