add get'er

Original commit message from CVS:
add get'er
This commit is contained in:
Joshua N. Pritikin 2001-09-26 23:14:32 +00:00
parent 3fe230abd0
commit c786e56b3a
2 changed files with 9 additions and 1 deletions

View file

@ -795,6 +795,14 @@ gst_element_error (GstElement *element, const gchar *error)
}
GstElementState
gst_element_get_state (GstElement *elem)
{
g_return_val_if_fail (GST_IS_ELEMENT (elem), GST_STATE_VOID_PENDING);
return GST_STATE (elem);
}
/**
* gst_element_set_state:
* @element: element to change state of
@ -859,7 +867,6 @@ gst_element_set_state (GstElement *element, GstElementState state)
}
}
/* this is redundant, really, it will always return SUCCESS */
return return_val;
}

View file

@ -218,6 +218,7 @@ void gst_element_disconnect (GstElement *src, const gchar *srcpadname,
void gst_element_signal_eos (GstElement *element);
GstElementState gst_element_get_state (GstElement *elem);
/* called by the app to set the state of the element */
gint gst_element_set_state (GstElement *element, GstElementState state);
const gchar * gst_element_statename (GstElementState state);