Skip to content

Commit

Permalink
rawbaseparse: check destination format correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
danielknobe authored and tp-m committed Jun 2, 2021
1 parent 2341e20 commit 5f11694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gst/rawparse/gstrawbaseparse.c
Expand Up @@ -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
Expand Down

0 comments on commit 5f11694

Please sign in to comment.