mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
resindvd: Guard against a divide-by-zero error.
https://bugzilla.gnome.org/show_bug.cgi?id=600263
This commit is contained in:
parent
42345f9961
commit
c4fb624ad9
1 changed files with 3 additions and 0 deletions
|
@ -2591,6 +2591,9 @@ rsn_dvdsrc_get_sector_from_time_tmap (resinDvdSrc * src, GstClockTime ts)
|
|||
|
||||
/* Get the time map */
|
||||
title_tmap = vts_tmapt->tmap + vts_ttn - 1;
|
||||
if (title_tmap->tmu == 0)
|
||||
return -1;
|
||||
|
||||
entry = ts / (title_tmap->tmu * GST_SECOND);
|
||||
if (entry == 0)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue