projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
And correct even more valid sparse warnings.
[platform/upstream/gstreamer.git]
/
tests
/
check
/
elements
/
fdsrc.c
diff --git
a/tests/check/elements/fdsrc.c
b/tests/check/elements/fdsrc.c
index
e86dc8e
..
7236356
100644
(file)
--- a/
tests/check/elements/fdsrc.c
+++ b/
tests/check/elements/fdsrc.c
@@
-27,16
+27,16
@@
#include <gst/check/gstcheck.h>
#include <gst/check/gstcheck.h>
-gboolean have_eos = FALSE;
+
static
gboolean have_eos = FALSE;
-GstPad *mysinkpad;
+
static
GstPad *mysinkpad;
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY);
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY);
-gboolean
+
static
gboolean
event_func (GstPad * pad, GstEvent * event)
{
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
event_func (GstPad * pad, GstEvent * event)
{
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
@@
-49,8
+49,8
@@
event_func (GstPad * pad, GstEvent * event)
return FALSE;
}
return FALSE;
}
-GstElement *
-setup_fdsrc ()
+
static
GstElement *
+setup_fdsrc (
void
)
{
GstElement *fdsrc;
{
GstElement *fdsrc;
@@
-62,7
+62,7
@@
setup_fdsrc ()
return fdsrc;
}
return fdsrc;
}
-void
+
static
void
cleanup_fdsrc (GstElement * fdsrc)
{
gst_pad_set_active (mysinkpad, FALSE);
cleanup_fdsrc (GstElement * fdsrc)
{
gst_pad_set_active (mysinkpad, FALSE);
@@
-180,7
+180,7
@@
GST_START_TEST (test_seeking)
GST_END_TEST;
GST_END_TEST;
-Suite *
+
static
Suite *
fdsrc_suite (void)
{
Suite *s = suite_create ("fdsrc");
fdsrc_suite (void)
{
Suite *s = suite_create ("fdsrc");