mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
vaapipostproc: use sink caps par if not requested
Use the sink caps pixel-aspect-ratio to fixate the src caps, if it is not already set. https://bugzilla.gnome.org/show_bug.cgi?id=777395
This commit is contained in:
parent
d8abbd7652
commit
26fa4df958
1 changed files with 3 additions and 3 deletions
|
@ -160,11 +160,11 @@ _fixate_frame_size (GstVaapiPostproc * postproc, GstVideoInfo * vinfo,
|
|||
to_par = gst_structure_get_value (outs, "pixel-aspect-ratio");
|
||||
if (!to_par) {
|
||||
g_value_init (&tpar, GST_TYPE_FRACTION);
|
||||
gst_value_set_fraction (&tpar, 1, 1);
|
||||
gst_value_set_fraction (&tpar, GST_VIDEO_INFO_PAR_N (vinfo),
|
||||
GST_VIDEO_INFO_PAR_D (vinfo));
|
||||
to_par = &tpar;
|
||||
|
||||
gst_structure_set (outs, "pixel-aspect-ratio", GST_TYPE_FRACTION, 1, 1,
|
||||
NULL);
|
||||
gst_structure_set_value (outs, "pixel-aspect-ratio", &tpar);
|
||||
}
|
||||
|
||||
/* we have both PAR but they might not be fixated */
|
||||
|
|
Loading…
Reference in a new issue