mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
structure: Use get_uint64() in gst_structure_get_clock_time()
Its code is identical.
This commit is contained in:
parent
ab9fdf13a0
commit
f0bd2540c0
1 changed files with 1 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue