Removed the assert on an unknown propertytype and print usefull info.

Original commit message from CVS:
Removed the assert on an unknown propertytype and print usefull info.
This commit is contained in:
Wim Taymans 2001-05-01 22:43:21 +00:00
parent 317c1c5b30
commit 5c43234108

View file

@ -210,10 +210,10 @@ gst_props_newv (const gchar *firstname, va_list var_args)
prop_name = va_arg (var_args, gchar*); prop_name = va_arg (var_args, gchar*);
continue; continue;
default: default:
g_warning ("unknown property type found %d for '%s'\n", entry->propstype, prop_name);
g_mutex_lock (_gst_props_entries_chunk_lock); g_mutex_lock (_gst_props_entries_chunk_lock);
g_mem_chunk_free (_gst_props_entries_chunk, entry); g_mem_chunk_free (_gst_props_entries_chunk, entry);
g_mutex_unlock (_gst_props_entries_chunk_lock); g_mutex_unlock (_gst_props_entries_chunk_lock);
g_assert_not_reached ();
break; break;
} }