return client;
}
+static void
+teardown_client (GstRTSPClient *client)
+{
+ gst_rtsp_client_set_thread_pool (client, NULL);
+ g_object_unref (client);
+}
+
GST_START_TEST (test_request)
{
GstRTSPClient *client;
&request) == GST_RTSP_OK);
gst_rtsp_message_unset (&request);
- g_object_unref (client);
+ teardown_client (client);
}
GST_END_TEST;
&request) == GST_RTSP_OK);
gst_rtsp_message_unset (&request);
- g_object_unref (client);
+ teardown_client (client);
}
GST_END_TEST;
gst_rtsp_message_unset (&request);
expected_transport = NULL;
expected_session_timeout = 60;
- g_object_unref (client);
+ teardown_client (client);
}
GST_END_TEST;
gst_rtsp_message_unset (&request);
expected_transport = NULL;
- g_object_unref (client);
+ teardown_client (client);
}
GST_END_TEST;
g_object_unref (session_pool);
- g_object_unref (client);
+ teardown_client (client);
g_object_unref (ctx.auth);
gst_rtsp_token_unref (ctx.token);
gst_rtsp_context_pop_current (&ctx);
fail_unless (gst_rtsp_session_pool_get_n_sessions (session_pool) == 1);
g_object_unref (session_pool);
- g_object_unref (client);
+ teardown_client (client);
g_object_unref (ctx.auth);
gst_rtsp_token_unref (ctx.token);
gst_rtsp_context_pop_current (&ctx);
&request) == GST_RTSP_OK);
gst_rtsp_message_unset (&request);
- g_object_unref (client);
-
+ teardown_client (client);
}
GST_START_TEST (test_client_sdp_with_max_bitrate_tag)