GNOME Bugzilla – Bug 727484
gstpad: Don't print name of an unowned event
Last modified: 2014-04-12 10:49:59 UTC
Created attachment 273457 [details] [review] Proposed patch The name of an event is printed when ownership is given away. Attached a patch that removes the name in the print.
Comment on attachment 273457 [details] [review] Proposed patch It might be more useful to keep the event type around and then include it in the debug output. It's usually very useful information to have there, instead of having to compare pointer values.
Ok. I found that the event_type is already around in this function. So I will just replace the macro with the function, that actually translates the event type to a string. If I can, I will try to update patches faster in the future.
Created attachment 274129 [details] [review] Proposed patch
Thanks! Pushed (minus the common submodule change): commit cb554772e5c868b0766b445f98de0b52c0e162d6 Author: Linus Svensson <linussn@axis.com> Date: Tue Apr 1 15:38:54 2014 +0200 pad: don't access unowned and possibly already freed event Don't print the name of the event when ownership is given away. https://bugzilla.gnome.org/show_bug.cgi?id=727484