diff options
author | Daniel Knobe <daniel-knobe@web.de> | 2021-05-31 09:14:53 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2021-06-02 23:09:22 +0100 |
commit | 5f11694ac757917bc94278c1eafdf819d6b56674 (patch) | |
tree | fe560f5d0e8327c45b1c77a97751ed3e24d4e739 | |
parent | 2341e2080ac1ee7ef6f4c2fc79b816de51714064 (diff) | |
download | gstreamer-plugins-base-5f11694ac757917bc94278c1eafdf819d6b56674.tar.gz |
rawbaseparse: check destination format correctly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1186>
-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 95b593517..77d3d5176 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 |