Add message to request a state change
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 18 Feb 2009 14:31:55 +0000 (15:31 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 18 Feb 2009 14:31:55 +0000 (15:31 +0100)
commit4b986a4a94c436a3d1dac443ad8da374fe38b6eb
tree01535e9be495db0feaec16f4b9f9b43b813a8666
parent26f368f7e751661d53895f8c00b07bb13486bffa
Add message to request a state change

Add a GST_MESSAGE_REQUEST_STATE that can be posted by element when they would
like to have the application change the state of the pipeline. the primary use
case is to pause the pipeline when an audio mixer is mixing a higher priority
stream but it can also be used for other purposes.

Add some docs and a unit test.

Implement the REQUEST_STATE message in gst-launch.

API: gst_message_new_request_state()
API: gst_message_parse_request_state()
API: GST_MESSAGE_REQUEST_STATE
docs/design/part-messages.txt
docs/gst/gstreamer-sections.txt
gst/gstmessage.c
gst/gstmessage.h
tests/check/gst/gstmessage.c
tools/gst-launch.c