mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
structure: error out when trying to fixate a fraction near an invalid target
This commit is contained in:
parent
1492465b89
commit
876af7b343
1 changed files with 1 additions and 0 deletions
|
@ -2738,6 +2738,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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue