mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
parent
49300da948
commit
289f69eb84
2 changed files with 6 additions and 1 deletions
|
@ -1491,7 +1491,11 @@ gst_deinterlace_setcaps (GstPad * pad, GstCaps * caps)
|
|||
gst_structure_get_fraction (structure, "framerate", &self->frame_rate_n,
|
||||
&self->frame_rate_d);
|
||||
res &= gst_structure_get_fourcc (structure, "format", &fourcc);
|
||||
res &= gst_video_format_parse_caps_interlaced (caps, &self->interlaced);
|
||||
if (pad == self->sinkpad) {
|
||||
res &= gst_video_format_parse_caps_interlaced (caps, &self->interlaced);
|
||||
} else {
|
||||
res &= gst_video_format_parse_caps_interlaced (caps, &self->src_interlaced);
|
||||
}
|
||||
if (!res)
|
||||
goto invalid_caps;
|
||||
|
||||
|
|
|
@ -213,6 +213,7 @@ struct _GstDeinterlace
|
|||
guint frame_size;
|
||||
gint frame_rate_n, frame_rate_d;
|
||||
gboolean interlaced;
|
||||
gboolean src_interlaced;
|
||||
|
||||
/* Number of bytes of actual data in each scanline. May be less than
|
||||
OverlayPitch since the overlay's scanlines might have alignment
|
||||
|
|
Loading…
Reference in a new issue