When fixating caps, from_par should always be initialized
with a fixed value.
In case the fixation is from src to sink pad it was setting
the from par (srcpad par) to a fraction range, this patch initializes
it to 1/1, based on the assumption that missing PAR is 1/1.
https://bugzilla.gnome.org/show_bug.cgi?id=641952
NULL);
}
if (!from_par) {
- g_value_init (&fpar, GST_TYPE_FRACTION_RANGE);
- gst_value_set_fraction_range_full (&fpar, 1, G_MAXINT, G_MAXINT, 1);
+ g_value_init (&fpar, GST_TYPE_FRACTION);
+ gst_value_set_fraction (&fpar, 1, 1);
from_par = &fpar;
}
}