mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
Fix gst_props_get_entry(): props==NULL is a valid props.
Original commit message from CVS: Fix gst_props_get_entry(): props==NULL is a valid props.
This commit is contained in:
parent
2763a973ef
commit
ced6786dd9
1 changed files with 5 additions and 4 deletions
|
@ -1528,10 +1528,10 @@ gst_props_copy_on_write (GstProps *props)
|
|||
* @props: the props to query
|
||||
* @name: the name of the entry to get
|
||||
*
|
||||
* Get the props entry with the geven name
|
||||
* Get the props entry with the given name
|
||||
*
|
||||
* Returns: The props entry with the geven name or NULL when
|
||||
* the entry was not found.
|
||||
* Returns: The props entry with the given name or NULL if
|
||||
* the entry does not exist.
|
||||
*/
|
||||
const GstPropsEntry*
|
||||
gst_props_get_entry (GstProps *props, const gchar *name)
|
||||
|
@ -1539,9 +1539,10 @@ gst_props_get_entry (GstProps *props, const gchar *name)
|
|||
GList *lentry;
|
||||
GQuark quark;
|
||||
|
||||
g_return_val_if_fail (props != NULL, NULL);
|
||||
g_return_val_if_fail (name != NULL, NULL);
|
||||
|
||||
if (props == NULL) return FALSE;
|
||||
|
||||
quark = g_quark_from_string (name);
|
||||
|
||||
lentry = g_list_find_custom (props->properties, GINT_TO_POINTER (quark), props_find_func);
|
||||
|
|
Loading…
Reference in a new issue