baseparse: Don't truncate the duration to milliseconds in gst_base_parse_convert_defa...
authorZebediah Figura <zfigura@codeweavers.com>
Tue, 18 Feb 2020 03:50:54 +0000 (21:50 -0600)
committerZebediah Figura <zfigura@codeweavers.com>
Tue, 8 Feb 2022 02:13:01 +0000 (20:13 -0600)
commitcc835c0722cd76d1746c3e3dce461c3f4c7052db
tree5f4df60da335fdcbcd116cb3624039ff7b1539ef
parent334c347de2a2a7301d378aab5e4fea6550733726
baseparse: Don't truncate the duration to milliseconds in gst_base_parse_convert_default().

There's no need to do this, and it can make seeking far less accurate.

For a specific use case: I am working with a long (45-minute) MPEG-1 layer 3 file, which has a constant bit rate but no seeking tables. Trying to seek the pipeline immediately after pausing it, without the ACCURATE flag, to a location 41 minutes in, yields a location that is potentially over ten seconds ahead of where it should be. This patch improves that drastically.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/374>
subprojects/gstreamer/libs/gst/base/gstbaseparse.c
subprojects/gstreamer/tests/check/libs/baseparse.c