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