gst/gststructure.c: Fix fraction list fixation code. Take the fraction with the small...
authorWim Taymans <wim.taymans@gmail.com>
Wed, 5 Sep 2007 01:00:50 +0000 (01:00 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 5 Sep 2007 01:00:50 +0000 (01:00 +0000)
commita0274c10a73cabb455c4503e2ace8d05113e148e
tree2e409c22399aaf8aca8d00e03c7673a7418793fb
parentb4136f995e8027d50246e49c99e9ca2427c8690f
gst/gststructure.c: Fix fraction list fixation code. Take the fraction with the smallest difference with the target i...

Original commit message from CVS:
* gst/gststructure.c:
(gst_structure_fixate_field_nearest_fraction):
Fix fraction list fixation code. Take the fraction with the smallest
difference with the target instead of the first one in the list.
* tests/check/gst/gststructure.c: (GST_START_TEST),
(gst_structure_suite):
Added test to verify correct fraction list fixation behaviour.
ChangeLog
gst/gststructure.c
tests/check/gst/gststructure.c