flacparse: make conversion from TIME to DEFAULT format (samples) work

Fix copy'n'paste error in the previous commit.
This commit is contained in:
Tim-Philipp Müller 2011-05-23 13:23:21 +01:00
parent 8823ae251a
commit 1183d0c1ab

View file

@ -1372,7 +1372,8 @@ gst_flac_parse_convert (GstBaseParse * parse,
else
*dest_value = -1;
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)
*dest_value =
gst_util_uint64_scale (src_value, flacparse->samplerate,