mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
tests/check/generic/states.c: Stop test on state-change error. Should be applied on other modules if we agree that it...
Original commit message from CVS: * tests/check/generic/states.c: Stop test on state-change error. Should be applied on other modules if we agree that it makes sense.
This commit is contained in:
parent
c3e91e1a88
commit
11450de677
2 changed files with 55 additions and 32 deletions
14
ChangeLog
14
ChangeLog
|
@ -1,3 +1,9 @@
|
|||
2008-10-06 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* tests/check/generic/states.c:
|
||||
Stop test on state-change error. Should be applied on other modules if
|
||||
we agree that it makes sense.
|
||||
|
||||
2008-10-06 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||
|
||||
* gst/mpegtsparse/mpegtsparse.c:
|
||||
|
@ -23,6 +29,14 @@
|
|||
* gst/mpegtsparse/mpegtsparse.c:
|
||||
Fix possible crash where pat is pointing to a freed structure.
|
||||
|
||||
2008-10-03 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* ext/metadata/README:
|
||||
* ext/metadata/metadataexif.c:
|
||||
* ext/metadata/metadatatags.c:
|
||||
* ext/metadata/metadatatags.h:
|
||||
Use core gps tags.
|
||||
|
||||
2008-10-03 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* ext/metadata/metadata_mapping.htm:
|
||||
|
|
|
@ -103,6 +103,7 @@ teardown ()
|
|||
GST_START_TEST (test_state_changes_up_and_down_seq)
|
||||
{
|
||||
GstElement *element;
|
||||
GstStateChangeReturn sret;
|
||||
GList *e;
|
||||
|
||||
for (e = elements; e; e = e->next) {
|
||||
|
@ -116,17 +117,20 @@ GST_START_TEST (test_state_changes_up_and_down_seq)
|
|||
GST_DEBUG ("element %s is a pipeline", name);
|
||||
}
|
||||
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
sret = gst_element_set_state (element, GST_STATE_READY);
|
||||
if (sret != GST_STATE_CHANGE_FAILURE) {
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
}
|
||||
gst_object_unref (GST_OBJECT (element));
|
||||
}
|
||||
}
|
||||
|
@ -136,6 +140,7 @@ GST_END_TEST;
|
|||
GST_START_TEST (test_state_changes_up_seq)
|
||||
{
|
||||
GstElement *element;
|
||||
GstStateChangeReturn sret;
|
||||
GList *e;
|
||||
|
||||
for (e = elements; e; e = e->next) {
|
||||
|
@ -149,17 +154,18 @@ GST_START_TEST (test_state_changes_up_seq)
|
|||
GST_DEBUG ("element %s is a pipeline", name);
|
||||
}
|
||||
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
sret = gst_element_set_state (element, GST_STATE_READY);
|
||||
if (sret != GST_STATE_CHANGE_FAILURE) {
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
}
|
||||
gst_object_unref (GST_OBJECT (element));
|
||||
}
|
||||
}
|
||||
|
@ -169,6 +175,7 @@ GST_END_TEST;
|
|||
GST_START_TEST (test_state_changes_down_seq)
|
||||
{
|
||||
GstElement *element;
|
||||
GstStateChangeReturn sret;
|
||||
GList *e;
|
||||
|
||||
for (e = elements; e; e = e->next) {
|
||||
|
@ -182,21 +189,23 @@ GST_START_TEST (test_state_changes_down_seq)
|
|||
GST_DEBUG ("element %s is a pipeline", name);
|
||||
}
|
||||
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
sret = gst_element_set_state (element, GST_STATE_READY);
|
||||
if (sret != GST_STATE_CHANGE_FAILURE) {
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_PLAYING);
|
||||
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
gst_element_set_state (element, GST_STATE_PAUSED);
|
||||
gst_element_set_state (element, GST_STATE_READY);
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
}
|
||||
gst_object_unref (GST_OBJECT (element));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue