mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtpssrcdemux: fix test warnings
This commit is contained in:
parent
54c4ba82f8
commit
94e10d522e
1 changed files with 5 additions and 4 deletions
|
@ -102,7 +102,7 @@ rtpssrcdemux_pad_added (G_GNUC_UNUSED GstElement * demux, GstPad * src_pad,
|
|||
|
||||
GST_START_TEST (test_event_forwarding)
|
||||
{
|
||||
TestContext ctx = { NULL, };
|
||||
TestContext ctx = { NULL, NULL, NULL, NULL };
|
||||
GstHarness *h;
|
||||
GstEvent *event;
|
||||
GstCaps *caps;
|
||||
|
@ -182,8 +182,8 @@ typedef struct
|
|||
} LockTestContext;
|
||||
|
||||
static void
|
||||
new_ssrc_pad_cb (GstElement * element, guint ssrc, GstPad * pad,
|
||||
LockTestContext * ctx)
|
||||
new_ssrc_pad_cb (G_GNUC_UNUSED GstElement * element, G_GNUC_UNUSED guint ssrc,
|
||||
G_GNUC_UNUSED GstPad * pad, LockTestContext * ctx)
|
||||
{
|
||||
g_message ("Signalling ready");
|
||||
g_atomic_int_set (&ctx->ready, 1);
|
||||
|
@ -207,9 +207,10 @@ push_buffer_func (gpointer user_data)
|
|||
GST_START_TEST (test_oob_event_locking)
|
||||
{
|
||||
GstHarness *h = gst_harness_new_with_padnames ("rtpssrcdemux", "sink", NULL);
|
||||
LockTestContext ctx = { FALSE, };
|
||||
LockTestContext ctx;
|
||||
GThread *thread;
|
||||
|
||||
memset (&ctx, 0, sizeof (LockTestContext));
|
||||
g_mutex_init (&ctx.mutex);
|
||||
g_cond_init (&ctx.cond);
|
||||
|
||||
|
|
Loading…
Reference in a new issue