static void gst_mqtt_publisher_get_property()

in mqtt-publish-sample/mqttpublisher-gstreamer-plugin/mqttpublisher/gstmqttpublisher.cc [129:140]


static void gst_mqtt_publisher_get_property(GObject * object, guint prop_id, GValue * value, GParamSpec * pspec) {
    GstMqttPublisher *filter = GST_MQTTPUBLISHER(object);

    switch (prop_id) {
        case PROP_PUBLISH_TOPIC:
            g_value_set_string(value, filter->publish_topic);
            break;
        default:
            G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
            break;
    }
}