if (!gst_bit_reader_get_bits_uint64 (&reader, &flacparse->total_samples, 36))
goto error;
- if (flacparse->total_samples)
- gst_base_parse_set_duration (GST_BASE_PARSE (flacparse), GST_FORMAT_TIME,
- GST_FRAMES_TO_CLOCK_TIME (flacparse->total_samples,
- flacparse->samplerate), 0);
+ if (flacparse->total_samples) {
+ gst_base_parse_set_duration (GST_BASE_PARSE (flacparse),
+ GST_FORMAT_DEFAULT, flacparse->total_samples, 0);
+ }
GST_DEBUG_OBJECT (flacparse, "STREAMINFO:\n"
"\tmin/max blocksize: %u/%u,\n"