mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
Small cosmetic cleanups
Make sure the return values from g_return_* are of the right type.
This commit is contained in:
parent
7e2a79fa1d
commit
5ccda2f8f4
6 changed files with 14 additions and 13 deletions
|
@ -144,8 +144,8 @@ gst_format_register (const gchar * nick, const gchar * description)
|
|||
GstFormatDefinition *format;
|
||||
GstFormat query;
|
||||
|
||||
g_return_val_if_fail (nick != NULL, 0);
|
||||
g_return_val_if_fail (description != NULL, 0);
|
||||
g_return_val_if_fail (nick != NULL, GST_FORMAT_UNDEFINED);
|
||||
g_return_val_if_fail (description != NULL, GST_FORMAT_UNDEFINED);
|
||||
|
||||
query = gst_format_get_by_nick (nick);
|
||||
if (query != GST_FORMAT_UNDEFINED)
|
||||
|
@ -182,7 +182,7 @@ gst_format_get_by_nick (const gchar * nick)
|
|||
{
|
||||
GstFormatDefinition *format;
|
||||
|
||||
g_return_val_if_fail (nick != NULL, 0);
|
||||
g_return_val_if_fail (nick != NULL, GST_FORMAT_UNDEFINED);
|
||||
|
||||
g_static_mutex_lock (&mutex);
|
||||
format = g_hash_table_lookup (_nick_to_format, nick);
|
||||
|
|
|
@ -223,7 +223,7 @@ _gst_parse_escape (const gchar * str)
|
|||
GstElement *
|
||||
gst_parse_launchv (const gchar ** argv, GError ** error)
|
||||
{
|
||||
return gst_parse_launchv_full (argv, NULL, 0, error);
|
||||
return gst_parse_launchv_full (argv, NULL, GST_PARSE_FLAG_NONE, error);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -299,7 +299,8 @@ gst_parse_launchv_full (const gchar ** argv, GstParseContext * context,
|
|||
GstElement *
|
||||
gst_parse_launch (const gchar * pipeline_description, GError ** error)
|
||||
{
|
||||
return gst_parse_launch_full (pipeline_description, NULL, 0, error);
|
||||
return gst_parse_launch_full (pipeline_description, NULL, GST_PARSE_FLAG_NONE,
|
||||
error);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -189,8 +189,8 @@ gst_query_type_register (const gchar * nick, const gchar * description)
|
|||
GstQueryTypeDefinition *query;
|
||||
GstQueryType lookup;
|
||||
|
||||
g_return_val_if_fail (nick != NULL, 0);
|
||||
g_return_val_if_fail (description != NULL, 0);
|
||||
g_return_val_if_fail (nick != NULL, GST_QUERY_NONE);
|
||||
g_return_val_if_fail (description != NULL, GST_QUERY_NONE);
|
||||
|
||||
lookup = gst_query_type_get_by_nick (nick);
|
||||
if (lookup != GST_QUERY_NONE)
|
||||
|
@ -227,7 +227,7 @@ gst_query_type_get_by_nick (const gchar * nick)
|
|||
{
|
||||
GstQueryTypeDefinition *query;
|
||||
|
||||
g_return_val_if_fail (nick != NULL, 0);
|
||||
g_return_val_if_fail (nick != NULL, GST_QUERY_NONE);
|
||||
|
||||
g_static_mutex_lock (&mutex);
|
||||
query = g_hash_table_lookup (_nick_to_query, nick);
|
||||
|
|
|
@ -412,7 +412,7 @@ gst_tag_setter_get_tag_merge_mode (GstTagSetter * setter)
|
|||
GstTagMergeMode mode;
|
||||
GstTagData *data;
|
||||
|
||||
g_return_val_if_fail (GST_IS_TAG_SETTER (setter), FALSE);
|
||||
g_return_val_if_fail (GST_IS_TAG_SETTER (setter), GST_TAG_MERGE_UNDEFINED);
|
||||
|
||||
data = gst_tag_setter_get_data (setter);
|
||||
|
||||
|
|
|
@ -3649,7 +3649,7 @@ gst_parse_bin_from_description (const gchar * bin_description,
|
|||
gboolean ghost_unlinked_pads, GError ** err)
|
||||
{
|
||||
return gst_parse_bin_from_description_full (bin_description,
|
||||
ghost_unlinked_pads, NULL, 0, err);
|
||||
ghost_unlinked_pads, NULL, GST_PARSE_FLAG_NONE, err);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -3189,9 +3189,9 @@ gst_base_parse_find_frame (GstBaseParse * parse, gint64 * pos,
|
|||
GstBuffer *buf = NULL;
|
||||
GstBaseParseFrame frame;
|
||||
|
||||
g_return_val_if_fail (GST_FLOW_ERROR, pos != NULL);
|
||||
g_return_val_if_fail (GST_FLOW_ERROR, time != NULL);
|
||||
g_return_val_if_fail (GST_FLOW_ERROR, duration != NULL);
|
||||
g_return_val_if_fail (pos != NULL, GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (time != NULL, GST_FLOW_ERROR);
|
||||
g_return_val_if_fail (duration != NULL, GST_FLOW_ERROR);
|
||||
|
||||
klass = GST_BASE_PARSE_GET_CLASS (parse);
|
||||
|
||||
|
|
Loading…
Reference in a new issue