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:
David Schleef 2003-06-15 06:09:00 +00:00
parent 2763a973ef
commit ced6786dd9

View file

@ -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);