GNOME Bugzilla – Bug 516938
Add user_data parameter to GstTagList GstTagMergeFunc
Last modified: 2008-02-22 20:48:50 UTC
Is it possible to include this patch to allow the GstTagMergeFunc function pointer type of GstTagList to accept user data (as a gpointer)? It would be useful for gstreamermm which needs this to pass in what is called a "Slot" which would then be used to then call a user defined C++ "callback". Thanks very much.
Created attachment 105412 [details] [review] GstTagMergeFunc user data parameter addition
No - absolutely not. At least, not in this form. We can't break API by changing public functions like that. Any change like this has to be done through compatible API addition, and the old functions have to continue working.
I understand. I think I'm missing something logically. If need be, I may submit a patch that does just what you say it should. Thanks.
Yes I was missing something logically. New wrapper API (such as the C++ gstreamermm wrapper API) will most likely not need to register new taglists (which is mainly done directly with gstreamer C API). After surveying the docs, I now realize that the merge function is used to merge taglist values into one and is provided (the merge function that is) when registering new taglists (which again will most likely be done only in gstreamer). Right now, I see no reason why new taglists will be registered using C++ wrapper API (gstreamermm) so I don't think I'll be providing a patch for this at this moment. Thanks.