GstRTSPSessionPool *session_pool;
GstRTSPMountPoints *mount_points;
GstRTSPMediaFactory *factory;
+ GstRTSPThreadPool *thread_pool;
client = gst_rtsp_client_new ();
gst_rtsp_mount_points_add_factory (mount_points, "/test", factory);
gst_rtsp_client_set_mount_points (client, mount_points);
+ thread_pool = gst_rtsp_thread_pool_new ();
+ gst_rtsp_client_set_thread_pool (client, thread_pool);
+
g_object_unref (mount_points);
g_object_unref (session_pool);
+ g_object_unref (thread_pool);
return client;
}
GstRTSPMountPoints *mount_points;
GstRTSPMediaFactory *factory;
GstRTSPAddressPool *address_pool;
+ GstRTSPThreadPool *thread_pool;
client = gst_rtsp_client_new ();
gst_rtsp_mount_points_add_factory (mount_points, "/test", factory);
gst_rtsp_client_set_mount_points (client, mount_points);
+ thread_pool = gst_rtsp_thread_pool_new ();
+ gst_rtsp_client_set_thread_pool (client, thread_pool);
+
g_object_unref (mount_points);
g_object_unref (session_pool);
g_object_unref (address_pool);
+ g_object_unref (thread_pool);
return client;
}