gst/gstpad.c: Add a default fixation for fraction lists.

Original commit message from CVS:
* gst/gstpad.c: (fixate_value):
Add a default fixation for fraction lists.
This commit is contained in:
Jan Schmidt 2006-02-14 11:38:50 +00:00
parent 2681eaea50
commit 43fc573b56
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2006-02-14 Jan Schmidt <thaytan@mad.scientist.com>
* gst/gstpad.c: (fixate_value):
Add a default fixation for fraction lists.
2006-02-13 Wim Taymans <wim@fluendo.com> 2006-02-13 Wim Taymans <wim@fluendo.com>
* gst/gsttask.c: (gst_task_init), (gst_task_func), * gst/gsttask.c: (gst_task_init), (gst_task_func),

View file

@ -1952,6 +1952,8 @@ fixate_value (GValue * dest, const GValue * src)
} else if (G_VALUE_TYPE (src) == GST_TYPE_DOUBLE_RANGE) { } else if (G_VALUE_TYPE (src) == GST_TYPE_DOUBLE_RANGE) {
g_value_init (dest, G_TYPE_DOUBLE); g_value_init (dest, G_TYPE_DOUBLE);
g_value_set_double (dest, gst_value_get_double_range_min (src)); g_value_set_double (dest, gst_value_get_double_range_min (src));
} else if (G_VALUE_TYPE (src) == GST_TYPE_FRACTION_RANGE) {
gst_value_init_and_copy (dest, gst_value_get_fraction_range_min (src));
} else if (G_VALUE_TYPE (src) == GST_TYPE_LIST) { } else if (G_VALUE_TYPE (src) == GST_TYPE_LIST) {
GValue temp = { 0 }; GValue temp = { 0 };