mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 06:29:31 +00:00
check: don't use c++ keywords as variable names
This commit is contained in:
parent
71b494639b
commit
5d0015048b
2 changed files with 12 additions and 12 deletions
|
@ -201,11 +201,11 @@ gst_check_teardown_element (GstElement * element)
|
||||||
*/
|
*/
|
||||||
GstPad *
|
GstPad *
|
||||||
gst_check_setup_src_pad (GstElement * element,
|
gst_check_setup_src_pad (GstElement * element,
|
||||||
GstStaticPadTemplate * template, GstCaps * caps)
|
GstStaticPadTemplate * tmpl, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstPad *srcpad;
|
GstPad *srcpad;
|
||||||
|
|
||||||
srcpad = gst_check_setup_src_pad_by_name (element, template, "sink");
|
srcpad = gst_check_setup_src_pad_by_name (element, tmpl, "sink");
|
||||||
if (caps)
|
if (caps)
|
||||||
fail_unless (gst_pad_set_caps (srcpad, caps), "could not set caps on pad");
|
fail_unless (gst_pad_set_caps (srcpad, caps), "could not set caps on pad");
|
||||||
return srcpad;
|
return srcpad;
|
||||||
|
@ -213,12 +213,12 @@ gst_check_setup_src_pad (GstElement * element,
|
||||||
|
|
||||||
GstPad *
|
GstPad *
|
||||||
gst_check_setup_src_pad_by_name (GstElement * element,
|
gst_check_setup_src_pad_by_name (GstElement * element,
|
||||||
GstStaticPadTemplate * template, const gchar * name)
|
GstStaticPadTemplate * tmpl, const gchar * name)
|
||||||
{
|
{
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
|
|
||||||
/* sending pad */
|
/* sending pad */
|
||||||
srcpad = gst_pad_new_from_static_template (template, "src");
|
srcpad = gst_pad_new_from_static_template (tmpl, "src");
|
||||||
GST_DEBUG_OBJECT (element, "setting up sending pad %p", srcpad);
|
GST_DEBUG_OBJECT (element, "setting up sending pad %p", srcpad);
|
||||||
fail_if (srcpad == NULL, "Could not create a srcpad");
|
fail_if (srcpad == NULL, "Could not create a srcpad");
|
||||||
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
ASSERT_OBJECT_REFCOUNT (srcpad, "srcpad", 1);
|
||||||
|
@ -279,12 +279,12 @@ gst_check_teardown_src_pad (GstElement * element)
|
||||||
/* FIXME: set_caps isn't that useful; might want to check if fixed,
|
/* FIXME: set_caps isn't that useful; might want to check if fixed,
|
||||||
* then use set_use_fixed or somesuch */
|
* then use set_use_fixed or somesuch */
|
||||||
GstPad *
|
GstPad *
|
||||||
gst_check_setup_sink_pad (GstElement * element, GstStaticPadTemplate * template,
|
gst_check_setup_sink_pad (GstElement * element, GstStaticPadTemplate * tmpl,
|
||||||
GstCaps * caps)
|
GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
|
||||||
sinkpad = gst_check_setup_sink_pad_by_name (element, template, "src");
|
sinkpad = gst_check_setup_sink_pad_by_name (element, tmpl, "src");
|
||||||
if (caps)
|
if (caps)
|
||||||
fail_unless (gst_pad_set_caps (sinkpad, caps), "Could not set pad caps");
|
fail_unless (gst_pad_set_caps (sinkpad, caps), "Could not set pad caps");
|
||||||
return sinkpad;
|
return sinkpad;
|
||||||
|
@ -292,12 +292,12 @@ gst_check_setup_sink_pad (GstElement * element, GstStaticPadTemplate * template,
|
||||||
|
|
||||||
GstPad *
|
GstPad *
|
||||||
gst_check_setup_sink_pad_by_name (GstElement * element,
|
gst_check_setup_sink_pad_by_name (GstElement * element,
|
||||||
GstStaticPadTemplate * template, const gchar * name)
|
GstStaticPadTemplate * tmpl, const gchar * name)
|
||||||
{
|
{
|
||||||
GstPad *srcpad, *sinkpad;
|
GstPad *srcpad, *sinkpad;
|
||||||
|
|
||||||
/* receiving pad */
|
/* receiving pad */
|
||||||
sinkpad = gst_pad_new_from_static_template (template, "sink");
|
sinkpad = gst_pad_new_from_static_template (tmpl, "sink");
|
||||||
GST_DEBUG_OBJECT (element, "setting up receiving pad %p", sinkpad);
|
GST_DEBUG_OBJECT (element, "setting up receiving pad %p", sinkpad);
|
||||||
fail_if (sinkpad == NULL, "Could not create a sinkpad");
|
fail_if (sinkpad == NULL, "Could not create a sinkpad");
|
||||||
|
|
||||||
|
|
|
@ -72,11 +72,11 @@ void gst_check_message_error (GstMessage * message, GstMessageType type,
|
||||||
GstElement *gst_check_setup_element (const gchar * factory);
|
GstElement *gst_check_setup_element (const gchar * factory);
|
||||||
void gst_check_teardown_element (GstElement * element);
|
void gst_check_teardown_element (GstElement * element);
|
||||||
GstPad *gst_check_setup_src_pad (GstElement * element,
|
GstPad *gst_check_setup_src_pad (GstElement * element,
|
||||||
GstStaticPadTemplate * template, GstCaps * caps);
|
GstStaticPadTemplate * tmpl, GstCaps * caps);
|
||||||
GstPad * gst_check_setup_src_pad_by_name (GstElement * element,
|
GstPad * gst_check_setup_src_pad_by_name (GstElement * element,
|
||||||
GstStaticPadTemplate * template, const gchar *name);
|
GstStaticPadTemplate * tmpl, const gchar *name);
|
||||||
GstPad * gst_check_setup_sink_pad_by_name (GstElement * element,
|
GstPad * gst_check_setup_sink_pad_by_name (GstElement * element,
|
||||||
GstStaticPadTemplate * template, const gchar *name);
|
GstStaticPadTemplate * tmpl, const gchar *name);
|
||||||
void gst_check_teardown_pad_by_name (GstElement * element, const gchar *name);
|
void gst_check_teardown_pad_by_name (GstElement * element, const gchar *name);
|
||||||
void gst_check_teardown_src_pad (GstElement * element);
|
void gst_check_teardown_src_pad (GstElement * element);
|
||||||
void gst_check_drop_buffers (void);
|
void gst_check_drop_buffers (void);
|
||||||
|
@ -86,7 +86,7 @@ void gst_check_element_push_buffer_list (const gchar * element_name,
|
||||||
void gst_check_element_push_buffer (const gchar * element_name,
|
void gst_check_element_push_buffer (const gchar * element_name,
|
||||||
GstBuffer * buffer_in, GstBuffer * buffer_out);
|
GstBuffer * buffer_in, GstBuffer * buffer_out);
|
||||||
GstPad *gst_check_setup_sink_pad (GstElement * element,
|
GstPad *gst_check_setup_sink_pad (GstElement * element,
|
||||||
GstStaticPadTemplate * template, GstCaps * caps);
|
GstStaticPadTemplate * tmpl, GstCaps * caps);
|
||||||
void gst_check_teardown_sink_pad (GstElement * element);
|
void gst_check_teardown_sink_pad (GstElement * element);
|
||||||
void gst_check_abi_list (GstCheckABIStruct list[], gboolean have_abi_sizes);
|
void gst_check_abi_list (GstCheckABIStruct list[], gboolean have_abi_sizes);
|
||||||
gint gst_check_run_suite (Suite * suite, const gchar * name,
|
gint gst_check_run_suite (Suite * suite, const gchar * name,
|
||||||
|
|
Loading…
Reference in a new issue