mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
deinterlace: make interlacedness test deterministic
If the interlaced flag is not present in the caps, we assume the data is not interlaced, instead of leaving the boolean uninitialized.
This commit is contained in:
parent
f0ac29113c
commit
4d51c68fc0
1 changed files with 4 additions and 3 deletions
|
@ -1000,9 +1000,10 @@ gst_deinterlace_get_interlacing_method (const GstCaps * caps)
|
||||||
GstDeinterlaceInterlacingMethod method = 0;
|
GstDeinterlaceInterlacingMethod method = 0;
|
||||||
gboolean interlaced;
|
gboolean interlaced;
|
||||||
|
|
||||||
/* check interlaced cap */
|
/* check interlaced cap, defaulting to FALSE */
|
||||||
gst_structure_get_boolean (gst_caps_get_structure (caps, 0), "interlaced",
|
if (!gst_structure_get_boolean (gst_caps_get_structure (caps, 0),
|
||||||
&interlaced);
|
"interlaced", &interlaced))
|
||||||
|
interlaced = FALSE;
|
||||||
|
|
||||||
method =
|
method =
|
||||||
interlaced ? GST_DEINTERLACE_INTERLACED : GST_DEINTERLACE_PROGRESSIVE;
|
interlaced ? GST_DEINTERLACE_INTERLACED : GST_DEINTERLACE_PROGRESSIVE;
|
||||||
|
|
Loading…
Reference in a new issue