docs/design/part-states.txt: Fix device open/close docs.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 25 Jun 2008 14:49:08 +0000 (14:49 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 25 Jun 2008 14:49:08 +0000 (14:49 +0000)
Original commit message from CVS:
* docs/design/part-states.txt:
Fix device open/close docs.

ChangeLog
docs/design/part-states.txt

index fb9d2cc..a0e88fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-25  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * docs/design/part-states.txt:
+       Fix device open/close docs.
+
 2008-06-25  Stefan Kost  <ensonic@users.sf.net>
 
        * ChangeLog:
index 38559de..9665818 100644 (file)
@@ -32,9 +32,10 @@ the following state changes are possible:
    - The element must check if the resources it needs are available.
      Device sinks and -sources typically try to probe the device to constain
      their caps.
+   - The element opens the device, this is needed if the previous step requires
+     the device to be opened.
 
  READY -> PAUSED
-   - The element opens the device and prepares itself for PLAYING.
    - the element pads are activated in order to receive data in PAUSED.
      Streaming threads are started.
    - some elements might need to return ASYNC and complete the state change
@@ -76,12 +77,13 @@ the following state changes are possible:
  PAUSED -> READY
    - sinks unblock any waits in the preroll.
    - elements unblock any waits on devices
-   - elements close devices
    - chain or get_range functions return WRONG_STATE.
    - the element pads are deactivated so that streaming becomes impossible and
      all streaming threads are stopped. 
+   - the sink forgets all negotiated formats
  
  READY -> NULL
+   - elements close devices
    - element removes any dynamically created pads