mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
tests/check/elements/ofa.c: Also check that we have processed at least 135 seconds of audio until we stop and calcula...
Original commit message from CVS: * tests/check/elements/ofa.c: (GST_START_TEST): Also check that we have processed at least 135 seconds of audio until we stop and calculated a fingerprint.
This commit is contained in:
parent
61ab5ecfee
commit
cf95d41d53
2 changed files with 34 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-04-05 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* tests/check/elements/ofa.c: (GST_START_TEST):
|
||||||
|
Also check that we have processed at least 135 seconds of audio
|
||||||
|
until we stop and calculated a fingerprint.
|
||||||
|
|
||||||
2008-04-04 Tim-Philipp Müller <tim at centricular dot net>
|
2008-04-04 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/subenc/gstsrtenc.c:
|
* gst/subenc/gstsrtenc.c:
|
||||||
|
|
|
@ -88,6 +88,9 @@ GST_START_TEST (test_ofa_le_1ch)
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
|
gint64 position;
|
||||||
|
GstFormat fmt = GST_FORMAT_TIME;
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("pipeline");
|
pipeline = gst_pipeline_new ("pipeline");
|
||||||
fail_unless (pipeline != NULL);
|
fail_unless (pipeline != NULL);
|
||||||
|
|
||||||
|
@ -134,6 +137,10 @@ GST_START_TEST (test_ofa_le_1ch)
|
||||||
big_endian = FALSE;
|
big_endian = FALSE;
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
|
|
||||||
|
fail_unless (gst_element_query_position (audiotestsrc, &fmt, &position));
|
||||||
|
fail_unless (position >= 135 * GST_SECOND);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
|
|
||||||
fail_unless (found_fingerprint == TRUE);
|
fail_unless (found_fingerprint == TRUE);
|
||||||
|
@ -154,6 +161,9 @@ GST_START_TEST (test_ofa_be_1ch)
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
|
gint64 position;
|
||||||
|
GstFormat fmt = GST_FORMAT_TIME;
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("pipeline");
|
pipeline = gst_pipeline_new ("pipeline");
|
||||||
fail_unless (pipeline != NULL);
|
fail_unless (pipeline != NULL);
|
||||||
|
|
||||||
|
@ -200,6 +210,10 @@ GST_START_TEST (test_ofa_be_1ch)
|
||||||
big_endian = TRUE;
|
big_endian = TRUE;
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
|
|
||||||
|
fail_unless (gst_element_query_position (audiotestsrc, &fmt, &position));
|
||||||
|
fail_unless (position >= 135 * GST_SECOND);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
|
|
||||||
fail_unless (found_fingerprint == TRUE);
|
fail_unless (found_fingerprint == TRUE);
|
||||||
|
@ -219,6 +233,9 @@ GST_START_TEST (test_ofa_le_2ch)
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
|
gint64 position;
|
||||||
|
GstFormat fmt = GST_FORMAT_TIME;
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("pipeline");
|
pipeline = gst_pipeline_new ("pipeline");
|
||||||
fail_unless (pipeline != NULL);
|
fail_unless (pipeline != NULL);
|
||||||
|
|
||||||
|
@ -265,6 +282,10 @@ GST_START_TEST (test_ofa_le_2ch)
|
||||||
big_endian = FALSE;
|
big_endian = FALSE;
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
|
|
||||||
|
fail_unless (gst_element_query_position (audiotestsrc, &fmt, &position));
|
||||||
|
fail_unless (position >= 135 * GST_SECOND);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
|
|
||||||
fail_unless (found_fingerprint == TRUE);
|
fail_unless (found_fingerprint == TRUE);
|
||||||
|
@ -285,6 +306,9 @@ GST_START_TEST (test_ofa_be_2ch)
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
|
gint64 position;
|
||||||
|
GstFormat fmt = GST_FORMAT_TIME;
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("pipeline");
|
pipeline = gst_pipeline_new ("pipeline");
|
||||||
fail_unless (pipeline != NULL);
|
fail_unless (pipeline != NULL);
|
||||||
|
|
||||||
|
@ -331,6 +355,10 @@ GST_START_TEST (test_ofa_be_2ch)
|
||||||
big_endian = TRUE;
|
big_endian = TRUE;
|
||||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||||
g_main_loop_run (loop);
|
g_main_loop_run (loop);
|
||||||
|
|
||||||
|
fail_unless (gst_element_query_position (audiotestsrc, &fmt, &position));
|
||||||
|
fail_unless (position >= 135 * GST_SECOND);
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
|
|
||||||
fail_unless (found_fingerprint == TRUE);
|
fail_unless (found_fingerprint == TRUE);
|
||||||
|
|
Loading…
Reference in a new issue