GNOME Bugzilla – Bug 168438
[API] GstIndexFilter doesn't receive user_data
Last modified: 2005-11-19 17:30:04 UTC
gst_index_set_filter() allows you to specify user data that, according to the documentation, is passed to the filter function. It also assigns the data to index->filter_user_data. Unfortunately, GstIndexFilter doesn't actually receive the data.
Hm... I think for now, your best shot is to read index->filter_user_data from the provided struct when the function is called. The API isn't very sane though, I'll mark this for API fixage in 0.9.
I'm wrapping this for a language binding, and since I also need destruction notification I just put the user data into the object as qdata.
Fixed in CVS, with a destroy function as well.