GNOME Bugzilla – Bug 102576
bogus keys in GHashNode
Last modified: 2004-12-22 21:47:04 UTC
If you look at the ghash implementation, you will see that the key pointer is stored in the GHashNode. The attached patch fixes g_hash_table_insert calls in gstmemindex.c such that the key remains valid for the duration of the hash table. gstfileindex.c needs a similar patch which i can provide if needed. Perhaps it would be worthwhile to grep the whole gstreamer tree for g_hash_table_insert and verify that this problem does not exist anywhere else.
Created attachment 13358 [details] [review] fix g_hash_table_insert calls in gstmemindex.c
Created attachment 13363 [details] [review] same patch for gstfileindex plus a few tweaks
Created attachment 13364 [details] [review] same patch plus resolver fix
wtay applied patch