libav: avmux + avdeinterlace destructor functions do not work
The destructor function of element avmux_* and avdeinterlace does not work when test using gst-launch-1.0, that is, the destructor function of element like finalize/dispose function not be called at the end phase of the application. The issue will cause some resource leak.
Test case:
gst-launch-1.0 filesrc location=/home/test/xxx.264 ! h264parse ! avdec_h264 ! avdeinterlace ! x264enc ! h264parse ! avmux_mp4 ! filesink location=xxxx.mp4
When application will go to exit, the instance of avmux_mp4 and avdeinterlace have not been released.
Edited by Leo Liu