From: <wt...@fr...> - 2005-10-08 13:10:50
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: wtay Date: Sat Oct 08 2005 06:10:46 PDT Log message: * check/gst/gstbin.c: (GST_START_TEST): * check/pipelines/cleanup.c: (GST_START_TEST): * check/pipelines/simple_launch_lines.c: (GST_START_TEST): Allow new clock message too. Modified files: . : ChangeLog check/gst : gstbin.c check/pipelines : cleanup.c simple_launch_lines.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.1647&r2=1.1648 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/check/gst/gstbin.c.diff?r1=1.34&r2=1.35 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/check/pipelines/cleanup.c.diff?r1=1.6&r2=1.7 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/check/pipelines/simple_launch_lines.c.diff?r1=1.14&r2=1.15 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.1647 retrieving revision 1.1648 diff -u -d -r1.1647 -r1.1648 --- ChangeLog 8 Oct 2005 12:56:37 -0000 1.1647 +++ ChangeLog 8 Oct 2005 13:10:33 -0000 1.1648 @@ -1,5 +1,12 @@ 2005-10-08 Wim Taymans <wi...@fl...> + * check/gst/gstbin.c: (GST_START_TEST): + * check/pipelines/cleanup.c: (GST_START_TEST): + * check/pipelines/simple_launch_lines.c: (GST_START_TEST): + Allow new clock message too. + +2005-10-08 Wim Taymans <wi...@fl...> * gst/gstmessage.c: (gst_message_new_error), (gst_message_new_warning), (gst_message_new_tag), (gst_message_new_state_changed), (gst_message_new_clock_provide), Index: gstbin.c RCS file: /cvs/gstreamer/gstreamer/check/gst/gstbin.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- gstbin.c 8 Oct 2005 08:58:45 -0000 1.34 +++ gstbin.c 8 Oct 2005 13:10:34 -0000 1.35 @@ -279,10 +279,11 @@ == GST_STATE_CHANGE_SUCCESS); /* each object is referenced by one message - * sink might have an extra reference if it's still blocked on preroll */ + * sink might have an extra reference if it's still blocked on preroll + * pipeline posted a new-clock message too. */ ASSERT_OBJECT_REFCOUNT (src, "src", 2); ASSERT_OBJECT_REFCOUNT_BETWEEN (sink, "sink", 2, 3); - ASSERT_OBJECT_REFCOUNT (pipeline, "pipeline", 2); + ASSERT_OBJECT_REFCOUNT (pipeline, "pipeline", 3); pop_messages (bus, 3); fail_if ((gst_bus_pop (bus)) != NULL); Index: cleanup.c RCS file: /cvs/gstreamer/gstreamer/check/pipelines/cleanup.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- cleanup.c 19 Sep 2005 14:41:56 -0000 1.6 +++ cleanup.c 8 Oct 2005 13:10:34 -0000 1.7 @@ -89,7 +89,8 @@ sink = gst_bin_get_by_name (GST_BIN (pipeline), "sink"); fail_if (sink == NULL); - run_pipeline (pipeline, s, GST_MESSAGE_STATE_CHANGED, GST_MESSAGE_EOS); + run_pipeline (pipeline, s, GST_MESSAGE_NEW_CLOCK | GST_MESSAGE_STATE_CHANGED, + GST_MESSAGE_EOS); count = GST_OBJECT_REFCOUNT_VALUE (src); fail_unless (count == 1, "src has a refcount of %d instead of 1", count); count = GST_OBJECT_REFCOUNT_VALUE (sink); Index: simple_launch_lines.c RCS file: /cvs/gstreamer/gstreamer/check/pipelines/simple_launch_lines.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- simple_launch_lines.c 19 Sep 2005 14:41:56 -0000 1.14 +++ simple_launch_lines.c 8 Oct 2005 13:10:34 -0000 1.15 @@ -93,23 +93,24 @@ s = "fakesrc can-activate-push=false ! fakesink can-activate-pull=true"; run_pipeline (setup_pipeline (s), s, - GST_MESSAGE_STATE_CHANGED, GST_MESSAGE_UNKNOWN); + GST_MESSAGE_NEW_CLOCK | GST_MESSAGE_STATE_CHANGED, GST_MESSAGE_UNKNOWN); s = "fakesrc can-activate-push=true ! fakesink can-activate-pull=false"; s = "fakesrc can-activate-push=false num-buffers=10 ! fakesink can-activate-pull=true"; - GST_MESSAGE_STATE_CHANGED, GST_MESSAGE_EOS); + GST_MESSAGE_NEW_CLOCK | GST_MESSAGE_STATE_CHANGED, GST_MESSAGE_EOS); s = "fakesrc can-activate-push=true num-buffers=10 ! fakesink can-activate-pull=false"; s = "fakesrc can-activate-push=false ! fakesink can-activate-pull=false"; ASSERT_CRITICAL (run_pipeline (setup_pipeline (s), s, - GST_MESSAGE_STATE_CHANGED, GST_MESSAGE_UNKNOWN)); + GST_MESSAGE_NEW_CLOCK | GST_MESSAGE_STATE_CHANGED, + GST_MESSAGE_UNKNOWN)); } GST_END_TEST; |