From: Tim-Philipp Müller Date: Sat, 7 Oct 2017 13:20:54 +0000 (+0100) Subject: tests: appsink: fix compiler warning and typo in struct name X-Git-Tag: 1.19.3~511^2~2122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb6dd3eb8d15eb277f140758332b60b37923eff8;p=platform%2Fupstream%2Fgstreamer.git tests: appsink: fix compiler warning and typo in struct name elements/appsink.c:624:3: warning: missing braces around initializer with gcc 4.8.4 --- diff --git a/tests/check/elements/appsink.c b/tests/check/elements/appsink.c index 3bf6138..4d5ec34 100644 --- a/tests/check/elements/appsink.c +++ b/tests/check/elements/appsink.c @@ -559,10 +559,12 @@ typedef struct GCond cond; GstAppSink *appsink; gboolean check; -} TestQeuryDrainContext; +} TestQueryDrainContext; + +#define TEST_QUERY_DRAIN_CONTEXT_INIT { { 0, }, } static gpointer -my_app_thread (TestQeuryDrainContext * ctx) +my_app_thread (TestQueryDrainContext * ctx) { GstSample *pulled_preroll = NULL; GstSample *pulled_sample = NULL; @@ -592,7 +594,7 @@ static GstPadProbeReturn query_handler (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) { GstQuery *query = GST_PAD_PROBE_INFO_QUERY (info); - TestQeuryDrainContext *ctx = (TestQeuryDrainContext *) user_data; + TestQueryDrainContext *ctx = (TestQueryDrainContext *) user_data; switch (GST_QUERY_TYPE (query)) { case GST_QUERY_DRAIN: { @@ -621,7 +623,7 @@ GST_START_TEST (test_query_drain) GstPad *sinkpad = NULL; GThread *thread = NULL; GstQuery *query = NULL; - TestQeuryDrainContext ctx = { 0 }; + TestQueryDrainContext ctx = TEST_QUERY_DRAIN_CONTEXT_INIT; sink = setup_appsink ();