Commit 91ed9290 authored by Thiago Santos's avatar Thiago Santos
Browse files

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.
parent b41cca7f
......@@ -501,8 +501,8 @@ gst_video_scale_fixate_caps (GstBaseTransform * base, GstPadDirection direction,
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment