mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
ges-extractable: Return NULL instead of G_TYPE_INVALID
The return type of this function is gchar *, not GType
This commit is contained in:
parent
0b1f3bb5ff
commit
92e595718a
1 changed files with 3 additions and 4 deletions
|
@ -213,10 +213,9 @@ ges_extractable_type_check_id (GType type, const gchar * id, GError ** error)
|
|||
GObjectClass *klass;
|
||||
GESExtractableInterface *iface;
|
||||
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, G_TYPE_INVALID);
|
||||
g_return_val_if_fail (g_type_is_a (type, G_TYPE_OBJECT), G_TYPE_INVALID);
|
||||
g_return_val_if_fail (g_type_is_a (type, GES_TYPE_EXTRACTABLE),
|
||||
G_TYPE_INVALID);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||
g_return_val_if_fail (g_type_is_a (type, G_TYPE_OBJECT), NULL);
|
||||
g_return_val_if_fail (g_type_is_a (type, GES_TYPE_EXTRACTABLE), NULL);
|
||||
|
||||
klass = g_type_class_ref (type);
|
||||
|
||||
|
|
Loading…
Reference in a new issue