mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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
This commit is contained in:
parent
20fae3f1e0
commit
cb6dd3eb8d
1 changed files with 6 additions and 4 deletions
|
@ -559,10 +559,12 @@ typedef struct
|
||||||
GCond cond;
|
GCond cond;
|
||||||
GstAppSink *appsink;
|
GstAppSink *appsink;
|
||||||
gboolean check;
|
gboolean check;
|
||||||
} TestQeuryDrainContext;
|
} TestQueryDrainContext;
|
||||||
|
|
||||||
|
#define TEST_QUERY_DRAIN_CONTEXT_INIT { { 0, }, }
|
||||||
|
|
||||||
static gpointer
|
static gpointer
|
||||||
my_app_thread (TestQeuryDrainContext * ctx)
|
my_app_thread (TestQueryDrainContext * ctx)
|
||||||
{
|
{
|
||||||
GstSample *pulled_preroll = NULL;
|
GstSample *pulled_preroll = NULL;
|
||||||
GstSample *pulled_sample = NULL;
|
GstSample *pulled_sample = NULL;
|
||||||
|
@ -592,7 +594,7 @@ static GstPadProbeReturn
|
||||||
query_handler (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
|
query_handler (GstPad * pad, GstPadProbeInfo * info, gpointer user_data)
|
||||||
{
|
{
|
||||||
GstQuery *query = GST_PAD_PROBE_INFO_QUERY (info);
|
GstQuery *query = GST_PAD_PROBE_INFO_QUERY (info);
|
||||||
TestQeuryDrainContext *ctx = (TestQeuryDrainContext *) user_data;
|
TestQueryDrainContext *ctx = (TestQueryDrainContext *) user_data;
|
||||||
switch (GST_QUERY_TYPE (query)) {
|
switch (GST_QUERY_TYPE (query)) {
|
||||||
case GST_QUERY_DRAIN:
|
case GST_QUERY_DRAIN:
|
||||||
{
|
{
|
||||||
|
@ -621,7 +623,7 @@ GST_START_TEST (test_query_drain)
|
||||||
GstPad *sinkpad = NULL;
|
GstPad *sinkpad = NULL;
|
||||||
GThread *thread = NULL;
|
GThread *thread = NULL;
|
||||||
GstQuery *query = NULL;
|
GstQuery *query = NULL;
|
||||||
TestQeuryDrainContext ctx = { 0 };
|
TestQueryDrainContext ctx = TEST_QUERY_DRAIN_CONTEXT_INIT;
|
||||||
|
|
||||||
sink = setup_appsink ();
|
sink = setup_appsink ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue