diff options
author | Daniel Knobe <daniel-knobe@web.de> | 2021-05-31 09:14:53 +0200 |
---|---|---|
committer | Daniel Knobe <daniel-knobe@web.de> | 2021-05-31 09:14:53 +0200 |
commit | 7641d648259ff89d6da7093316ed5f63ef1fe4f9 (patch) | |
tree | cd2b9bf08d6ef4eead0f8e832dfade2e66a69dde | |
parent | 78e7612eb0707cda85baa0d2848b66e468ae7929 (diff) | |
download | gstreamer-plugins-base-7641d648259ff89d6da7093316ed5f63ef1fe4f9.tar.gz |
rawbaseparse: check destination format correctly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1181>
-rw-r--r-- | gst/rawparse/gstrawbaseparse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rawparse/gstrawbaseparse.c b/gst/rawparse/gstrawbaseparse.c index 24e358fd8..7427f140a 100644 --- a/gst/rawparse/gstrawbaseparse.c +++ b/gst/rawparse/gstrawbaseparse.c @@ -700,7 +700,8 @@ gst_raw_base_parse_convert (GstBaseParse * parse, GstFormat src_format, *dest_value = src_value; } else if ((src_format == GST_FORMAT_TIME || dest_format == GST_FORMAT_TIME) && gst_raw_base_parse_is_gstformat_supported (raw_base_parse, src_format) - && gst_raw_base_parse_is_gstformat_supported (raw_base_parse, src_format)) { + && gst_raw_base_parse_is_gstformat_supported (raw_base_parse, + dest_format)) { /* Perform conversions here if either the src or dest format * are GST_FORMAT_TIME and the other format is supported by * the subclass. This is because we perform TIME<->non-TIME |