Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHavard Graff <havard@pexip.com>2020-02-10 16:22:47 +0300
committerHavard Graff <havard@pexip.com>2020-02-11 17:07:45 +0300
commit94e10d522e50e947f3d00274568b4cf6ffbf3a44 (patch)
tree2af2d66a2e1e137b4f1f7cf1d291fc0f8da8c31e /tests
parent54c4ba82f818c648a37ae8899c2efb16be81264d (diff)
rtpssrcdemux: fix test warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/rtpssrcdemux.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/check/elements/rtpssrcdemux.c b/tests/check/elements/rtpssrcdemux.c
index 179d68e4f..e5e1e2616 100644
--- a/tests/check/elements/rtpssrcdemux.c
+++ b/tests/check/elements/rtpssrcdemux.c
@@ -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);