videoscale: Fix assertion on caps fixation
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
This commit is contained in:
parent
b41cca7f40
commit
91ed9290b8
@ -501,8 +501,8 @@ gst_video_scale_fixate_caps (GstBaseTransform * base, GstPadDirection direction,
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user