mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
structure: gst_structure_empty_new() does better error checking
No need to check for media_type!=NULL as the function we call that actual create the structure does a full check anyway.
This commit is contained in:
parent
4d9e645551
commit
d963503b26
1 changed files with 0 additions and 4 deletions
|
@ -219,8 +219,6 @@ gst_structure_new (const gchar * name, const gchar * firstfield, ...)
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
va_list varargs;
|
va_list varargs;
|
||||||
|
|
||||||
g_return_val_if_fail (name != NULL, NULL);
|
|
||||||
|
|
||||||
va_start (varargs, firstfield);
|
va_start (varargs, firstfield);
|
||||||
structure = gst_structure_new_valist (name, firstfield, varargs);
|
structure = gst_structure_new_valist (name, firstfield, varargs);
|
||||||
va_end (varargs);
|
va_end (varargs);
|
||||||
|
@ -250,8 +248,6 @@ gst_structure_new_valist (const gchar * name,
|
||||||
{
|
{
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
|
|
||||||
g_return_val_if_fail (name != NULL, NULL);
|
|
||||||
|
|
||||||
structure = gst_structure_empty_new (name);
|
structure = gst_structure_empty_new (name);
|
||||||
|
|
||||||
if (structure)
|
if (structure)
|
||||||
|
|
Loading…
Reference in a new issue