mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 09:12:19 +00:00
[MOVED FROM BAD] don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
This commit is contained in:
parent
c3aed629b3
commit
1beae4829c
1 changed files with 7 additions and 6 deletions
|
@ -92,8 +92,9 @@ gst_y4mencode_get_type (void)
|
||||||
0,
|
0,
|
||||||
(GInstanceInitFunc) gst_y4mencode_init,
|
(GInstanceInitFunc) gst_y4mencode_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
y4mencode_type = g_type_register_static (GST_TYPE_ELEMENT,
|
y4mencode_type = g_type_register_static (GST_TYPE_ELEMENT,
|
||||||
"GstY4mEncode", &y4mencode_info, 0);
|
"GstY4mEncode", &y4mencode_info, 0);
|
||||||
}
|
}
|
||||||
return y4mencode_type;
|
return y4mencode_type;
|
||||||
}
|
}
|
||||||
|
@ -135,9 +136,9 @@ gst_y4mencode_sinkconnect (GstPad * pad, const GstCaps * caps)
|
||||||
gdouble fps;
|
gdouble fps;
|
||||||
gdouble framerates[] = {
|
gdouble framerates[] = {
|
||||||
00.000,
|
00.000,
|
||||||
23.976, 24.000, /* 24fps movie */
|
23.976, 24.000, /* 24fps movie */
|
||||||
25.000, /* PAL */
|
25.000, /* PAL */
|
||||||
29.970, 30.000, /* NTSC */
|
29.970, 30.000, /* NTSC */
|
||||||
50.000,
|
50.000,
|
||||||
59.940, 60.000
|
59.940, 60.000
|
||||||
};
|
};
|
||||||
|
@ -157,10 +158,10 @@ gst_y4mencode_sinkconnect (GstPad * pad, const GstCaps * caps)
|
||||||
idx = i;
|
idx = i;
|
||||||
} else {
|
} else {
|
||||||
gdouble old_diff = fabs (framerates[idx] - fps),
|
gdouble old_diff = fabs (framerates[idx] - fps),
|
||||||
new_diff = fabs (framerates[i] - fps);
|
new_diff = fabs (framerates[i] - fps);
|
||||||
|
|
||||||
if (new_diff < old_diff) {
|
if (new_diff < old_diff) {
|
||||||
idx = i;
|
idx = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue