From f0bd2540c0f75d999223f06e8fdb64d7a43f4f4a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 25 Feb 2014 16:11:20 +0100 Subject: [PATCH] structure: Use get_uint64() in gst_structure_get_clock_time() Its code is identical. --- gst/gststructure.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/gst/gststructure.c b/gst/gststructure.c index 6edc359..91cf86f 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -1546,22 +1546,7 @@ gboolean gst_structure_get_clock_time (const GstStructure * structure, const gchar * fieldname, GstClockTime * 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 (!G_VALUE_HOLDS_UINT64 (&field->value)) - return FALSE; - - *value = gst_g_value_get_uint64_unchecked (&field->value); - - return TRUE; + return gst_structure_get_uint64 (structure, fieldname, value); } /** -- 2.7.4