Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gstreamer
Commits
fb1f6bec
Commit
fb1f6bec
authored
Nov 08, 2011
by
Wim Taymans
Browse files
pad: fix unit test
parent
79aeef49
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/check/gst/gstpad.c
View file @
fb1f6bec
...
...
@@ -451,6 +451,8 @@ GST_START_TEST (test_push_linked_flushing)
ASSERT_CAPS_REFCOUNT
(
caps
,
"caps"
,
1
);
gst_pad_set_caps
(
src
,
caps
);
/* need to activate to make it accept the caps */
gst_pad_set_active
(
sink
,
TRUE
);
gst_pad_set_caps
(
sink
,
caps
);
/* one for me and one for each set_caps */
ASSERT_CAPS_REFCOUNT
(
caps
,
"caps"
,
3
);
...
...
@@ -469,6 +471,9 @@ GST_START_TEST (test_push_linked_flushing)
fail_unless_equals_int
(
g_list_length
(
buffers
),
0
);
gst_buffer_unref
(
buffer
);
gst_pad_set_active
(
src
,
TRUE
);
gst_pad_set_active
(
sink
,
FALSE
);
/* adding a probe that returns FALSE will drop the buffer without trying
* to chain */
id
=
gst_pad_add_probe
(
src
,
GST_PAD_PROBE_TYPE_BUFFER
,
_probe_handler
,
...
...
@@ -493,9 +498,8 @@ GST_START_TEST (test_push_linked_flushing)
gst_buffer_unref
(
buffer
);
gst_pad_remove_probe
(
src
,
id
);
/* cleanup */
ASSERT_CAPS_REFCOUNT
(
caps
,
"caps"
,
3
);
ASSERT_CAPS_REFCOUNT
(
caps
,
"caps"
,
2
);
ASSERT_OBJECT_REFCOUNT
(
src
,
"src"
,
1
);
gst_pad_link
(
src
,
sink
);
gst_object_unref
(
src
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment