GNOME Bugzilla – Bug 343538
GstCollectPads doesn't reset EOS fields when stopped
Last modified: 2006-06-01 09:02:52 UTC
GstCollectPads doesn't reset pads->eospads when is stopped. That may result in wrong behaviour if the same instance is started again without removing and readding the pads.
Created attachment 66557 [details] [review] Testcase and fix
Thanks for the patch! Patch by: Alessandro Decina <alessandro at nnva dot org> * libs/gst/base/gstcollectpads.c: (gst_collect_pads_stop): Make sure the EOS flag is cleared from pads after a flush or stop. Fixes #343538. * tests/check/libs/collectpads.c: (GST_START_TEST), (gst_collect_pads_suite): Added test for collectpads reusage after EOS.