mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
interlace: Also handle a missing "interlace-mode" field as progressive
Otherwise caps negotiation will fail in situations that are supposed to work, like: "video/x-raw,framerate=(fraction)60/1" ! interlace field-pattern=0 ! "video/x-raw,framerate=(fraction)30/1" Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2335>
This commit is contained in:
parent
c7db9ce70b
commit
bf89c80d74
1 changed files with 2 additions and 1 deletions
|
@ -775,7 +775,8 @@ gst_interlace_caps_double_framerate (GstCaps * caps, gboolean half,
|
||||||
interlace_mode = gst_structure_get_string (s, "interlace-mode");
|
interlace_mode = gst_structure_get_string (s, "interlace-mode");
|
||||||
/* Do not double the framerate for interlaced - we will either passthrough
|
/* Do not double the framerate for interlaced - we will either passthrough
|
||||||
* or fail to negotiate */
|
* or fail to negotiate */
|
||||||
if (skip_progressive && (g_strcmp0 (interlace_mode, "progressive") != 0))
|
if (skip_progressive && (interlace_mode
|
||||||
|
&& g_strcmp0 (interlace_mode, "progressive") != 0))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (G_VALUE_TYPE (val) == GST_TYPE_FRACTION) {
|
if (G_VALUE_TYPE (val) == GST_TYPE_FRACTION) {
|
||||||
|
|
Loading…
Reference in a new issue