tests/check/pipelines/simple-launch-lines.c
authorAndy Wingo <wingo@pobox.com>
Tue, 19 Jun 2007 21:58:30 +0000 (21:58 +0000)
committerAndy Wingo <wingo@pobox.com>
Tue, 19 Jun 2007 21:58:30 +0000 (21:58 +0000)
commit4e1c9c226a829ced5448eee24d60bcb643110aeb
tree89c169bc7a73de07ce8035f2d4b305ed3ad26bd3
parentb0c2d0564081fe411e8a8a31b1b16c77c0d19ba8
tests/check/pipelines/simple-launch-lines.c

Original commit message from CVS:
2007-06-19  Andy Wingo  <wingo@pobox.com>

* tests/check/pipelines/simple-launch-lines.c
(test_state_change_returns): Enable pull-mode tests now that
basesink has been fixed.

* libs/gst/base/gstbasesink.c (gst_base_sink_needs_preroll):
Changed from gst_base_sink_is_prerolled, reversing the sense of
the return value. Returns FALSE also if the sink is in pull mode,
in which case it needs no preroll.
(gst_base_sink_query, gst_base_sink_change_state): Update for
needs_preroll change.
(gst_base_sink_change_state): Add a case for READY_TO_PAUSED after
chaining up, in which we return SUCCESS directly if we activated
in pull mode instead of ASYNC. Involves countering an async_start
message sent before chaining up; not sure if this is correct, in
an ideal world we only send async-start when activating in push
mode.
ChangeLog
libs/gst/base/gstbasesink.c
tests/check/pipelines/simple-launch-lines.c