parent
49300da948
commit
289f69eb84
@ -1491,7 +1491,11 @@ gst_deinterlace_setcaps (GstPad * pad, GstCaps * caps)
|
|||||||
gst_structure_get_fraction (structure, "framerate", &self->frame_rate_n,
|
gst_structure_get_fraction (structure, "framerate", &self->frame_rate_n,
|
||||||
&self->frame_rate_d);
|
&self->frame_rate_d);
|
||||||
res &= gst_structure_get_fourcc (structure, "format", &fourcc);
|
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)
|
if (!res)
|
||||||
goto invalid_caps;
|
goto invalid_caps;
|
||||||
|
|
||||||
|
@ -213,6 +213,7 @@ struct _GstDeinterlace
|
|||||||
guint frame_size;
|
guint frame_size;
|
||||||
gint frame_rate_n, frame_rate_d;
|
gint frame_rate_n, frame_rate_d;
|
||||||
gboolean interlaced;
|
gboolean interlaced;
|
||||||
|
gboolean src_interlaced;
|
||||||
|
|
||||||
/* Number of bytes of actual data in each scanline. May be less than
|
/* Number of bytes of actual data in each scanline. May be less than
|
||||||
OverlayPitch since the overlay's scanlines might have alignment
|
OverlayPitch since the overlay's scanlines might have alignment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user