mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-04 16:39:39 +00:00
rawbaseparse: check destination format correctly
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1181>
This commit is contained in:
parent
78e7612eb0
commit
7641d64825
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue