mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
flacparse: make conversion from TIME to DEFAULT format (samples) work
Fix copy'n'paste error in the previous commit.
This commit is contained in:
parent
8823ae251a
commit
1183d0c1ab
1 changed files with 2 additions and 1 deletions
|
@ -1372,7 +1372,8 @@ gst_flac_parse_convert (GstBaseParse * parse,
|
||||||
else
|
else
|
||||||
*dest_value = -1;
|
*dest_value = -1;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else if (src_format == GST_FORMAT_TIME && dest_format == GST_FORMAT_TIME) {
|
} else if (src_format == GST_FORMAT_TIME &&
|
||||||
|
dest_format == GST_FORMAT_DEFAULT) {
|
||||||
if (src_value != -1)
|
if (src_value != -1)
|
||||||
*dest_value =
|
*dest_value =
|
||||||
gst_util_uint64_scale (src_value, flacparse->samplerate,
|
gst_util_uint64_scale (src_value, flacparse->samplerate,
|
||||||
|
|
Loading…
Reference in a new issue