Skip to content

Commit

Permalink
tests: fix client test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wim Taymans committed Jul 11, 2013
1 parent 0b3644a commit 868a7a5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/check/gst/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ setup_client (const gchar * launch_line)
GstRTSPSessionPool *session_pool;
GstRTSPMountPoints *mount_points;
GstRTSPMediaFactory *factory;
GstRTSPThreadPool *thread_pool;

client = gst_rtsp_client_new ();

Expand All @@ -132,8 +133,12 @@ setup_client (const gchar * launch_line)
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;
}
Expand Down Expand Up @@ -359,6 +364,7 @@ setup_multicast_client (void)
GstRTSPMountPoints *mount_points;
GstRTSPMediaFactory *factory;
GstRTSPAddressPool *address_pool;
GstRTSPThreadPool *thread_pool;

client = gst_rtsp_client_new ();

Expand All @@ -376,9 +382,13 @@ setup_multicast_client (void)
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;
}
Expand Down

0 comments on commit 868a7a5

Please sign in to comment.