diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-08-22 12:19:19 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-08-22 12:19:19 +0200 |
commit | 405a5d2a925ff9fbe582ad70ed4b6ed90e3f5b15 (patch) | |
tree | 37869411e2b4e2eefd86efe5a859bd6b8159f7a7 /gst/gststructure.c | |
parent | b1573e98650008ca5b4845c47efcda18b5e28ac3 (diff) | |
download | gstreamer-405a5d2a925ff9fbe582ad70ed4b6ed90e3f5b15.tar.gz |
value: remove our FOURCC GType
Remove our custom fourcc GValue.
Diffstat (limited to 'gst/gststructure.c')
-rw-r--r-- | gst/gststructure.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c index e54210690d..3462baeded 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -1364,42 +1364,6 @@ gst_structure_get_uint (const GstStructure * structure, } /** - * gst_structure_get_fourcc: - * @structure: a #GstStructure - * @fieldname: the name of a field - * @value: (out): a pointer to a 32bit unsigned int to set - * - * Sets the Fourcc pointed to by @value corresponding to the value of the - * given field. Caller is responsible for making sure the field exists - * and has the correct type. - * - * Returns: TRUE if the value could be set correctly. If there was no field - * with @fieldname or the existing field did not contain a fourcc, this function - * returns FALSE. - */ -gboolean -gst_structure_get_fourcc (const GstStructure * structure, - const gchar * fieldname, guint32 * value) -{ - GstStructureField *field; - - g_return_val_if_fail (structure != NULL, FALSE); - g_return_val_if_fail (fieldname != NULL, FALSE); - g_return_val_if_fail (value != NULL, FALSE); - - field = gst_structure_get_field (structure, fieldname); - - if (field == NULL) - return FALSE; - if (!GST_VALUE_HOLDS_FOURCC (&field->value)) - return FALSE; - - *value = gst_value_get_fourcc (&field->value); - - return TRUE; -} - -/** * gst_structure_get_date: * @structure: a #GstStructure * @fieldname: the name of a field @@ -1705,10 +1669,6 @@ gst_structure_get_abbrs (gint * n_abbrs) , {"buffer", GST_TYPE_BUFFER} , - {"fourcc", GST_TYPE_FOURCC} - , - {"4", GST_TYPE_FOURCC} - , {"fraction", GST_TYPE_FRACTION} , {"boolean", G_TYPE_BOOLEAN} |