mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
x264enc: Don't try to fixate ANY allowed caps
Instead fall back to the template caps. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2207>
This commit is contained in:
parent
497b3da14d
commit
f342618329
1 changed files with 5 additions and 0 deletions
|
@ -2272,6 +2272,11 @@ gst_x264_enc_set_format (GstVideoEncoder * video_enc,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (gst_caps_is_any (allowed_caps)) {
|
||||
gst_caps_unref (allowed_caps);
|
||||
allowed_caps = gst_caps_ref (template_caps);
|
||||
}
|
||||
|
||||
allowed_caps = gst_caps_make_writable (allowed_caps);
|
||||
allowed_caps = gst_caps_fixate (allowed_caps);
|
||||
s = gst_caps_get_structure (allowed_caps, 0);
|
||||
|
|
Loading…
Reference in a new issue