Commit c786e56b authored by Joshua N. Pritikin's avatar Joshua N. Pritikin
Browse files

add get'er

Original commit message from CVS:
add get'er
parent 3fe230ab
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment