mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 06:01:04 +00:00
add get'er
Original commit message from CVS: add get'er
This commit is contained in:
parent
3fe230abd0
commit
c786e56b3a
2 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue