Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Marc-André Lureau
gst-plugins-good
Commits
c6abc45d
Commit
c6abc45d
authored
Apr 19, 2011
by
Tim-Philipp Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: add index-setting test for baseparse/flacparse
https://bugzilla.gnome.org/show_bug.cgi?id=646811
parent
68da32e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
tests/check/elements/flacparse.c
tests/check/elements/flacparse.c
+18
-0
No files found.
tests/check/elements/flacparse.c
View file @
c6abc45d
...
...
@@ -242,6 +242,23 @@ GST_START_TEST (test_parse_flac_detect_stream)
GST_END_TEST
;
GST_START_TEST
(
test_parse_flac_set_index
)
{
GstElement
*
parse
;
GstIndex
*
idx
;
idx
=
gst_index_factory_make
(
"memindex"
);
if
(
idx
==
NULL
)
return
;
parse
=
gst_element_factory_make
(
"flacparse"
,
NULL
);
fail_unless
(
parse
!=
NULL
);
gst_object_ref_sink
(
idx
);
gst_element_set_index
(
parse
,
GST_INDEX
(
idx
));
gst_object_unref
(
idx
);
gst_object_unref
(
parse
);
}
GST_END_TEST
;
static
Suite
*
flacparse_suite
(
void
)
...
...
@@ -258,6 +275,7 @@ flacparse_suite (void)
/* Other tests */
tcase_add_test
(
tc_chain
,
test_parse_flac_detect_stream
);
tcase_add_test
(
tc_chain
,
test_parse_flac_set_index
);
return
s
;
}
...
...
Write
Preview
Markdown
is supported
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