static void gst_rtsp_session_pool_finalize (GObject * object) { GstRTSPSessionPool *pool = GST_RTSP_SESSION_POOL (object); g_mutex_clear (&pool->lock); g_hash_table_unref (pool->sessions); G_OBJECT_CLASS (gst_rtsp_session_pool_parent_class)->finalize (object); }
static void gst_rtsp_session_pool_finalize (GObject * object) { GstRTSPSessionPool *pool = GST_RTSP_SESSION_POOL (object); GstRTSPSessionPoolPrivate *priv = pool->priv; gst_rtsp_session_pool_filter (pool, remove_sessions_func, NULL); g_hash_table_unref (priv->sessions); g_mutex_clear (&priv->lock); G_OBJECT_CLASS (gst_rtsp_session_pool_parent_class)->finalize (object); }
static void gst_rtsp_session_pool_get_property (GObject * object, guint propid, GValue * value, GParamSpec * pspec) { GstRTSPSessionPool *pool = GST_RTSP_SESSION_POOL (object); switch (propid) { case PROP_MAX_SESSIONS: g_value_set_uint (value, gst_rtsp_session_pool_get_max_sessions (pool)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, propid, pspec); break; } }