GNOME Bugzilla – Bug 623196
rtpptdemux: don't send custom downstream event twice
Last modified: 2010-06-30 23:26:38 UTC
This element is sending custom downstream events twice downstream. Propably the writter just forgot to add the break statement in the switch.
Created attachment 164953 [details] [review] rtpptdemux: don't send custom downstream event twice
Oh, that would lead to refcounting errors / crashes too I suppose, since gst_pad_event_default() takes ownership of the event. However, I'm not sure this makes the code entirely correct yet. We still leak the event in the else branch of the if (rtpdemuxpad) above. Also, I wonder if it needs to be gst_pad_get_parent() at the beginning.
Created attachment 164959 [details] [review] rtpptdemux: fix memleak on custom downstream events by not sending custom downstream event twice and fix memleak when not handling the event
gst_object_unref (event); needs to be changed to gst_event_unref (event); Feel free to push once that's fixed up, thanks!
Created attachment 164960 [details] [review] rtpptdemux: fix memleak on custom downstream events by not sending custom downstream event twice and fix memleak when not handling the event
committed!