[IIO] Enable/Disable buffer at correct state
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 9 Apr 2019 03:31:36 +0000 (12:31 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 12 Apr 2019 00:38:53 +0000 (09:38 +0900)
commit8ab99f39961eb10b986afd9877fb203185ac920c
tree5893af121e6a4f14be5fc1fdc518a6fe3c7c3bb6
parent96a1097a00e416282a3fed25f097d818ba96e577
[IIO] Enable/Disable buffer at correct state

Enabling/Disabling buffer when going from PAUSED to PLAYING state.
This might lead to higher latency but provides latest and correct data.
Enabling in READY to PAUSED can lead to accumulation of frames before playing
and result in unreal latency as well as old data.
This commit will also sync gst timing with iio device time.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
gst/nnstreamer/tensor_source/tensor_src_iio.c