From 6f5a82aed3d6612a49f9a25e2c21cf7c3e352178 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 10 Jul 2013 20:48:47 +0200 Subject: [PATCH] thread-pool: fix vmethod invocation --- gst/rtsp-server/rtsp-thread-pool.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gst/rtsp-server/rtsp-thread-pool.c b/gst/rtsp-server/rtsp-thread-pool.c index d22d665..88bd792 100644 --- a/gst/rtsp-server/rtsp-thread-pool.c +++ b/gst/rtsp-server/rtsp-thread-pool.c @@ -162,8 +162,7 @@ static void gst_rtsp_thread_pool_set_property (GObject * object, guint propid, const GValue * value, GParamSpec * pspec); static void gst_rtsp_thread_pool_finalize (GObject * obj); -static gpointer do_loop (GstRTSPThread * thread, - GstRTSPThreadPoolClass * klass); +static gpointer do_loop (GstRTSPThread * thread); static GstRTSPThread *default_get_thread (GstRTSPThreadPool * pool, GstRTSPThreadType type, GstRTSPClientState * state); @@ -262,14 +261,17 @@ gst_rtsp_thread_pool_set_property (GObject * object, guint propid, } static gpointer -do_loop (GstRTSPThread * thread, GstRTSPThreadPoolClass * klass) +do_loop (GstRTSPThread * thread) { GstRTSPThreadPoolPrivate *priv; + GstRTSPThreadPoolClass *klass; GstRTSPThreadPool *pool; pool = gst_mini_object_get_qdata (GST_MINI_OBJECT (thread), thread_pool); priv = pool->priv; + klass = GST_RTSP_THREAD_POOL_GET_CLASS (pool); + if (klass->thread_enter) klass->thread_enter (pool, thread); -- 2.7.4