gst/matroska/matroska-demux.c: Fix a bad conversion using gst_guint64_to_gdouble...
authorSébastien Moutte <sebastien@moutte.net>
Sun, 23 Apr 2006 15:55:30 +0000 (15:55 +0000)
committerSébastien Moutte <sebastien@moutte.net>
Sun, 23 Apr 2006 15:55:30 +0000 (15:55 +0000)
commit0ba1bac2641b883ab642b9a2162a85ac0323137b
treec4c234cb47c04f7b2049f847509280ea6a0ba02d
parentb58a224cd109acc1b077a3ec1dd7142b7604e5fe
gst/matroska/matroska-demux.c: Fix a bad conversion using gst_guint64_to_gdouble. fabs ((gdouble) demux->index[entry]...

Original commit message from CVS:
* gst/matroska/matroska-demux.c: (gst_matroskademux_do_index_seek):
Fix a bad conversion using gst_guint64_to_gdouble.
fabs ((gdouble) demux->index[entry].time - (gdouble) seek_pos) can not be
replaced by fabs (gst_guint64_to_gdouble (demux->index[entry].time - seek_pos)) as the
difference could be negative. fabs (gst_guint64_to_gdouble (demux->index[entry].time) -
gst_guint64_to_gdouble (seek_pos)) is the good solution. Thanks to Tim who has seen my
mistake.
ChangeLog
gst/matroska/matroska-demux.c