Leaks various objects and asserts on shutdown
@slomo
Submitted by Sebastian Dröge Link to original bug (#796881)
Description
See attached patch to test-launch. Run with "videotestsrc ! x264enc ! rtph264pay name=pay0" and make sure to attach a client before 10s are over.
First observation: it only actually quits once the client disconnects. gst_deinit() hangs:
Thread 1 (Thread 0x7f2420859680 (LWP 19897)):
#0 0x00007f242265da79 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007f2422c4ee0f in g_cond_wait (cond=cond@entry=0x55f87474ef40, mutex=0x55f87474f850) at ../../../../glib/gthread-posix.c:1402
#2 0x00007f2422c31f3c in g_thread_pool_free (pool=0x55f87474ef20, immediate=0, wait_=<optimized out>)
at ../../../../glib/gthreadpool.c:776
#3 0x00007f24235b977a in default_cleanup (pool=0x55f87474a910 [GstTaskPool]) at gsttaskpool.c:88
#4 0x00007f24235b890d in init_klass_pool (klass=<optimized out>) at gsttask.c:161
#5 0x00007f24235b8b52 in gst_task_cleanup_all () at gsttask.c:381
#6 0x00007f242353c6c4 in gst_deinit () at gst.c:1095
#7 0x000055f8728292f4 in main (argc=<optimized out>, argv=<optimized out>) at test-launch.c:102