mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
vaapipostproc: fix bug when user disabled deinterlacing.
Fix pipeline error / hang when the user disabled deinterlacing through the deinterlace-mode=disabled property setting.
This commit is contained in:
parent
d71008210d
commit
6d86caa9d1
1 changed files with 4 additions and 4 deletions
|
@ -550,12 +550,12 @@ gst_vaapipostproc_transform_caps_impl(GstBaseTransform *trans,
|
||||||
/* Set double framerate in interlaced mode */
|
/* Set double framerate in interlaced mode */
|
||||||
if (!gst_util_fraction_multiply(fps_n, fps_d, 2, 1, &fps_n, &fps_d))
|
if (!gst_util_fraction_multiply(fps_n, fps_d, 2, 1, &fps_n, &fps_d))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* Signal the other pad that we generate only progressive frames */
|
|
||||||
GST_VIDEO_INFO_INTERLACE_MODE(&vi) =
|
|
||||||
GST_VIDEO_INTERLACE_MODE_PROGRESSIVE;
|
|
||||||
}
|
}
|
||||||
format = GST_VIDEO_FORMAT_ENCODED;
|
format = GST_VIDEO_FORMAT_ENCODED;
|
||||||
|
|
||||||
|
/* Signal the other pad that we generate only progressive frames */
|
||||||
|
GST_VIDEO_INFO_INTERLACE_MODE(&vi) =
|
||||||
|
GST_VIDEO_INTERLACE_MODE_PROGRESSIVE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (is_deinterlace_enabled(postproc, &vi)) {
|
if (is_deinterlace_enabled(postproc, &vi)) {
|
||||||
|
|
Loading…
Reference in a new issue