mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +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
|
* @props: the props to query
|
||||||
* @name: the name of the entry to get
|
* @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
|
* Returns: The props entry with the given name or NULL if
|
||||||
* the entry was not found.
|
* the entry does not exist.
|
||||||
*/
|
*/
|
||||||
const GstPropsEntry*
|
const GstPropsEntry*
|
||||||
gst_props_get_entry (GstProps *props, const gchar *name)
|
gst_props_get_entry (GstProps *props, const gchar *name)
|
||||||
|
@ -1539,9 +1539,10 @@ gst_props_get_entry (GstProps *props, const gchar *name)
|
||||||
GList *lentry;
|
GList *lentry;
|
||||||
GQuark quark;
|
GQuark quark;
|
||||||
|
|
||||||
g_return_val_if_fail (props != NULL, NULL);
|
|
||||||
g_return_val_if_fail (name != NULL, NULL);
|
g_return_val_if_fail (name != NULL, NULL);
|
||||||
|
|
||||||
|
if (props == NULL) return FALSE;
|
||||||
|
|
||||||
quark = g_quark_from_string (name);
|
quark = g_quark_from_string (name);
|
||||||
|
|
||||||
lentry = g_list_find_custom (props->properties, GINT_TO_POINTER (quark), props_find_func);
|
lentry = g_list_find_custom (props->properties, GINT_TO_POINTER (quark), props_find_func);
|
||||||
|
|
Loading…
Reference in a new issue