rtph264pay: fix potential crash when shutting down
authorPatrick Radizi <patrickr@axis.com>
Thu, 11 Dec 2014 09:16:06 +0000 (10:16 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 11 Dec 2014 14:00:19 +0000 (14:00 +0000)
commit0a359cdbdce7d85b05582c988831db502793f828
treeb55ba1b5145f109a130824eb2c765ea15ac3d56a
parentde8d00348e1f4c78329094d9f890385a087b88d9
rtph264pay: fix potential crash when shutting down

A race condition in the state change function may cause buffers
to be unreffed while they are still used by the streaming thread
in gst_rtp_h264_pay_send_sps_pps() resulting in a crash. Chain
up to the parent class first in the state change function to
make sure streaming has stopped and only then free those buffers.

https://bugzilla.gnome.org/show_bug.cgi?id=741381
gst/rtp/gstrtph264pay.c