[IIO] Restriction on changing element properties
authorParichay Kapoor <pk.kapoor@samsung.com>
Mon, 1 Apr 2019 04:26:27 +0000 (13:26 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 2 Apr 2019 07:32:54 +0000 (16:32 +0900)
commit30079a5c8ae48e4bf7e9e9cc41682fd2aa61b4ec
tree4fd1f8934fd219f10ed966121ce977ed3e70c094
parent43b74331c4b764b1211c2c2fe076414f8413d7e1
[IIO] Restriction on changing element properties

Element should be in state NULL or READY for the property of the device to be changed.
If the state is PAUSED/READY, properties cant be changed as the updated properties cannot
be reflected without the element going back to READY state.
Added freeing of properties before re-setting them.

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