[Mux/Merge] Fix time synchronization buf for cornner cases
authorjijoong.moon <jijoong.moon@samsung.com>
Fri, 9 Nov 2018 07:01:10 +0000 (16:01 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 14 Nov 2018 10:54:10 +0000 (19:54 +0900)
commit0fe49d0fed262a0836c3998dc74c67a1584feff6
treeccaa8d6c685103bb661fd15a295fbe5ea35abd79
parent1dabff89a31d1d47f1bd6f8e7bbba60387017738
[Mux/Merge] Fix time synchronization buf for cornner cases

For the basepad options with 0 and maximum duration, current
implementation is not work properly. In order to support this
situation, base time is decided min(duration, pts(nth)-pts(n-1 th)-1).

**Self evaluation:**
1. Build test:  [X]Passed [ ]Failed [ ]Skipped
2. Run test:  [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
gst/nnstreamer/tensor_common.c