mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:46:13 +00:00
tests/check/pipelines/wavpack.c: Remove workaround for a bug in identity that is fixed in 0.10.20.
Original commit message from CVS: * tests/check/pipelines/wavpack.c: (bus_handler): Remove workaround for a bug in identity that is fixed in 0.10.20.
This commit is contained in:
parent
000fa87cdf
commit
b2c97f7bc6
2 changed files with 11 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-06-25 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
|
* tests/check/pipelines/wavpack.c: (bus_handler):
|
||||||
|
Remove workaround for a bug in identity that is fixed in 0.10.20.
|
||||||
|
|
||||||
2008-06-25 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
2008-06-25 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
Patch by: Jason Donenfeld <BugZilla at zx2c4 dot com>
|
Patch by: Jason Donenfeld <BugZilla at zx2c4 dot com>
|
||||||
|
|
|
@ -32,6 +32,7 @@ bus_handler (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
case GST_MESSAGE_WARNING:
|
case GST_MESSAGE_WARNING:
|
||||||
case GST_MESSAGE_ERROR:{
|
case GST_MESSAGE_ERROR:{
|
||||||
GError *gerror;
|
GError *gerror;
|
||||||
|
|
||||||
gchar *debug;
|
gchar *debug;
|
||||||
|
|
||||||
gst_message_parse_error (message, &gerror, &debug);
|
gst_message_parse_error (message, &gerror, &debug);
|
||||||
|
@ -45,18 +46,9 @@ bus_handler (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
case GST_MESSAGE_ELEMENT:
|
case GST_MESSAGE_ELEMENT:
|
||||||
{
|
{
|
||||||
const GstStructure *s = gst_message_get_structure (message);
|
const GstStructure *s = gst_message_get_structure (message);
|
||||||
|
|
||||||
const gchar *name = gst_structure_get_name (s);
|
const gchar *name = gst_structure_get_name (s);
|
||||||
|
|
||||||
/* FIXME: identity bug http://bugzilla.gnome.org/show_bug.cgi?id=526042 */
|
|
||||||
if (strcmp (name, "imperfect-timestamp") == 0
|
|
||||||
|| strcmp (name, "imperfect-offset") == 0) {
|
|
||||||
const GValue *cur_offset = gst_structure_get_value (s, "cur-offset");
|
|
||||||
|
|
||||||
fail_unless (G_VALUE_HOLDS_UINT64 (cur_offset));
|
|
||||||
if (g_value_get_uint64 (cur_offset) == 0)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
fail_unless (strcmp (name, "imperfect-timestamp") != 0);
|
fail_unless (strcmp (name, "imperfect-timestamp") != 0);
|
||||||
fail_unless (strcmp (name, "imperfect-offset") != 0);
|
fail_unless (strcmp (name, "imperfect-offset") != 0);
|
||||||
break;
|
break;
|
||||||
|
@ -98,11 +90,13 @@ fakesink_handoff (GstElement * object, GstBuffer * buffer, GstPad * pad,
|
||||||
GST_START_TEST (test_encode_decode)
|
GST_START_TEST (test_encode_decode)
|
||||||
{
|
{
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
|
|
||||||
GstElement *audiotestsrc, *identity1, *wavpackenc, *identity2, *wavpackdec,
|
GstElement *audiotestsrc, *identity1, *wavpackenc, *identity2, *wavpackdec,
|
||||||
*identity3, *fakesink;
|
*identity3, *fakesink;
|
||||||
GstAdapter *srcadapter, *sinkadapter;
|
GstAdapter *srcadapter, *sinkadapter;
|
||||||
|
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
|
|
||||||
GMainLoop *loop;
|
GMainLoop *loop;
|
||||||
|
|
||||||
GstBuffer *in, *out;
|
GstBuffer *in, *out;
|
||||||
|
@ -198,6 +192,7 @@ Suite *
|
||||||
wavpack_suite (void)
|
wavpack_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("Wavpack");
|
Suite *s = suite_create ("Wavpack");
|
||||||
|
|
||||||
TCase *tc_chain = tcase_create ("linear");
|
TCase *tc_chain = tcase_create ("linear");
|
||||||
|
|
||||||
/* time out after 60s, not the default 3 */
|
/* time out after 60s, not the default 3 */
|
||||||
|
@ -215,6 +210,7 @@ main (int argc, char **argv)
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = wavpack_suite ();
|
Suite *s = wavpack_suite ();
|
||||||
|
|
||||||
SRunner *sr = srunner_create (s);
|
SRunner *sr = srunner_create (s);
|
||||||
|
|
||||||
gst_check_init (&argc, &argv);
|
gst_check_init (&argc, &argv);
|
||||||
|
|
Loading…
Reference in a new issue