diff options
author | Andy Wingo <wingo@pobox.com> | 2005-09-02 15:42:00 +0000 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2005-09-02 15:42:00 +0000 |
commit | e040bb2dbe8373c723d2e973b311fd15dc72a76e (patch) | |
tree | 73bcb6ea84523a35b96a7ee66210e5183faa5acb /gst/gstmessage.h | |
parent | c2397269b118f1e9296887f4b6f799d6f1d7e82a (diff) |
gst/gstelement.h (GstState): Renamed from GstElementState, changed to be a normal enum instead of flags.
Original commit message from CVS:
2005-09-02 Andy Wingo <wingo@pobox.com>
* gst/gstelement.h (GstState): Renamed from GstElementState,
changed to be a normal enum instead of flags.
(GstStateChangeReturn): Renamed from GstElementStateReturn, names
munged to be GST_STATE_CHANGE_*.
(GST_STATE_CHANGE): Renamed from GST_STATE_TRANSITION, updated to
work with the new state representation.
(GstStateChange): New enumeration of possible state transitions.
Replaces GST_STATE_FOO_TO_BAR with GST_STATE_CHANGE_FOO_TO_BAR.
(GstElementClass::change_state): Pass the GstStateChange along as
an argument. Helps language bindings, so they don't have to use
tricky lock-needing macros like GST_STATE_CHANGE ().
* scripts/update-states (file): New script. Run it on a file to
update it for state naming and API changes. Updates files in
place.
* All files updated for the new API.
Diffstat (limited to 'gst/gstmessage.h')
-rw-r--r-- | gst/gstmessage.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/gstmessage.h b/gst/gstmessage.h index 349577766..ac6ebbc82 100644 --- a/gst/gstmessage.h +++ b/gst/gstmessage.h @@ -138,8 +138,8 @@ GstMessage * gst_message_new_eos (GstObject * src); GstMessage * gst_message_new_error (GstObject * src, GError * error, gchar * debug); GstMessage * gst_message_new_warning (GstObject * src, GError * error, gchar * debug); GstMessage * gst_message_new_tag (GstObject * src, GstTagList * tag_list); -GstMessage * gst_message_new_state_changed (GstObject * src, GstElementState old_state, - GstElementState new_state); +GstMessage * gst_message_new_state_changed (GstObject * src, GstState old_state, + GstState new_state); GstMessage * gst_message_new_segment_start (GstObject * src, GstClockTime timestamp); GstMessage * gst_message_new_segment_done (GstObject * src, GstClockTime timestamp); GstMessage * gst_message_new_custom (GstMessageType type, @@ -166,8 +166,8 @@ GstMessage * gst_message_new_custom (GstMessageType type, void gst_message_parse_error (GstMessage *message, GError **gerror, gchar **debug); void gst_message_parse_warning (GstMessage *message, GError **gerror, gchar **debug); void gst_message_parse_tag (GstMessage *message, GstTagList **tag_list); -void gst_message_parse_state_changed (GstMessage *message, GstElementState *old_state, - GstElementState *new_state); +void gst_message_parse_state_changed (GstMessage *message, GstState *old_state, + GstState *new_state); void gst_message_parse_segment_start (GstMessage *message, GstClockTime *timestamp); void gst_message_parse_segment_done (GstMessage *message, GstClockTime *timestamp); |