#include <gst/check/gstcheck.h>
#include <gst/dataprotocol/dataprotocol.h>
-gboolean have_eos = FALSE;
-
/* For ease of programming we use globals to keep refs for our floating
* src and sink pads we create; otherwise we always have to do get_pad,
* get_peer, and then remove references in every test function */
-GstPad *mysrcpad, *mysinkpad, *myshsinkpad;
+static GstPad *mysrcpad, *mysinkpad, *myshsinkpad;
#define AUDIO_CAPS_TEMPLATE_STRING \
"audio/x-raw-int, " \
);
/* takes over reference for outcaps */
-GstElement *
-setup_gdpdepay ()
+static GstElement *
+setup_gdpdepay (void)
{
GstElement *gdpdepay;
return gdpdepay;
}
-void
+static void
cleanup_gdpdepay (GstElement * gdpdepay)
{
GST_DEBUG ("cleanup_gdpdepay");
GST_STATIC_CAPS ("application/x-gst-test-streamheader")
);
-GstElement *
-setup_gdpdepay_streamheader ()
+static GstElement *
+setup_gdpdepay_streamheader (void)
{
GstElement *gdpdepay;
#endif /* ifndef HAVE_CPU_PPC64 */
-Suite *
+static Suite *
gdpdepay_suite (void)
{
Suite *s = suite_create ("gdpdepay");
#include <gst/check/gstcheck.h>
#include <gst/dataprotocol/dataprotocol.h>
-gboolean have_eos = FALSE;
-
/* For ease of programming we use globals to keep refs for our floating
* src and sink pads we create; otherwise we always have to do get_pad,
* get_peer, and then remove references in every test function */
-GstPad *mysrcpad, *myshsrcpad, *mysinkpad;
+static GstPad *mysrcpad, *myshsrcpad, *mysinkpad;
#define AUDIO_CAPS_TEMPLATE_STRING \
"audio/x-raw-int, " \
);
/* takes over reference for outcaps */
-GstElement *
-setup_gdppay ()
+static GstElement *
+setup_gdppay (void)
{
GstElement *gdppay;
return gdppay;
}
-void
+static void
cleanup_gdppay (GstElement * gdppay)
{
GST_DEBUG ("cleanup_gdppay");
g_list_free (buffers);
buffers = NULL;
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
- gst_object_unref (gdppay);
+ cleanup_gdppay (gdppay);
}
GST_END_TEST;
);
-GstElement *
-setup_gdppay_streamheader ()
+static GstElement *
+setup_gdppay_streamheader (void)
{
GstElement *gdppay;
g_list_free (buffers);
buffers = NULL;
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
- gst_object_unref (gdppay);
+ cleanup_gdppay (gdppay);
}
GST_END_TEST;
g_list_free (buffers);
buffers = NULL;
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
- gst_object_unref (gdppay);
+ cleanup_gdppay (gdppay);
}
GST_END_TEST;
inbuffer = gst_buffer_new_and_alloc (4);
caps = gst_caps_from_string (AUDIO_CAPS_STRING);
gst_buffer_set_caps (inbuffer, caps);
+ gst_caps_unref (caps);
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
g_list_free (buffers);
buffers = NULL;
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
- gst_object_unref (gdppay);
+ cleanup_gdppay (gdppay);
}
GST_END_TEST;
g_list_free (buffers);
buffers = NULL;
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
- gst_object_unref (gdppay);
+ cleanup_gdppay (gdppay);
}
GST_END_TEST;
-Suite *
+static Suite *
gdppay_suite (void)
{
Suite *s = suite_create ("gdppay");
static int n_tags = 0;
-gboolean
+static gboolean
tag_event_probe_cb (GstPad * pad, GstEvent * event, GMainLoop * loop)
{
switch (GST_EVENT_TYPE (event)) {
static int n_in_caps = 0;
-gboolean
+static gboolean
buffer_probe_cb (GstPad * pad, GstBuffer * buffer)
{
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_IN_CAPS)) {
#endif /* #ifndef GST_DISABLE_PARSE */
-Suite *
+static Suite *
streamheader_suite (void)
{
Suite *s = suite_create ("streamheader");