[Gst/MQTTSrc] Revise re-connection and re-subscription mechanism
authorWook Song <wook16.song@samsung.com>
Thu, 3 Jun 2021 12:50:14 +0000 (21:50 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 7 Jun 2021 07:41:04 +0000 (16:41 +0900)
commit4bd25cb5264902626d57adb2f5880ec8643cfc3e
treea9673abffb794d925ba6b56eb704d072eab09b1d
parent683b502e290a3a26593bdf5bcd0cc13fa8497492
[Gst/MQTTSrc] Revise re-connection and re-subscription mechanism

When the MQTTSrc element goes to the GST_STATE_PAUSED state, it will
lose the connection to the broker. In order to restore the connection
and subscriptions established before, this patch modifies the code
snippet that handles the case when the state is changed to PLAYING by
using the GST_BASE_SRC_IS_STARTED and MQTTAsync_reconnect functions.

Signed-off-by: Wook Song <wook16.song@samsung.com>
gst/mqtt/mqttsrc.c