Closed MaZderMind closed 4 years ago
Thanks, looks good for 1.2. May relook at this as part of #189 as the real issue is expecting the idle callback to be an event probe in the first place?
I think the Code originates from a time when there were no IDLE Probes. The Mask-Pattern just happened to also match IDLE-"Events" but as they are no real "Events", they do not carry Event-Info.
Using
Pad.block
often results in the following Assertation being thrown:On a side-note the "Critical" assertation comes from this line in gstpad.c which is harmless, because it just returns null when the event is neither an Up- nor a Downstream-Event. This occurs here specifically for IDLE-Events. Moving the check into the Caller (which is what this PR does) fixes the Problem.
This fix is part of a set of fixes for #184 and is extracted from #186