subparse: Check the time is valid when calculating the duration 52/201452/2
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 14 Mar 2019 07:37:52 +0000 (16:37 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 14 Mar 2019 08:36:04 +0000 (17:36 +0900)
commit0b18f3f793ce4354cc7a2f6a7bc34503411073b4
tree2d1cdd50a04e8ffd5e0270a5cae5bf3c314e970a
parentae4a216a4be6cea44717cde006be4b15b578945e
subparse: Check the time is valid when calculating the duration

  - In the case of sami subtitles, the duration for the last subtitle data is wrong.
  - The time value used to calculate the duraion is invalid,
    So the calculated duration is also wrong.
  - If the time is GST_CLOCK_TIME_NONE, the duration also be GST_CLOCK_TIME_NONE

Change-Id: Ic3eff678430229879880dcbc8c13743ca6260252
gst/subparse/samiparse.c