[MOVED FROM GST-P-FARSIGHT] Use pause_task instead of stop_task to avoid any possible deadlocks

20070215102629-65035-a48c773661e385a91e022e0ac1da0862c4206f85.gz
This commit is contained in:
zeeshan.ali@nokia.com 2007-02-15 10:26:29 +00:00 committed by Edward Hervey
parent b392c5041d
commit 04413fffc2

View file

@ -421,8 +421,8 @@ gst_rtp_dtmf_src_stop (GstRTPDTMFSrc *dtmfsrc)
{
g_return_if_fail (dtmfsrc->payload != NULL);
if (!gst_pad_stop_task (dtmfsrc->srcpad)) {
GST_ERROR_OBJECT (dtmfsrc, "Failed to stop task on src pad");
if (!gst_pad_pause_task (dtmfsrc->srcpad)) {
GST_ERROR_OBJECT (dtmfsrc, "Failed to pause task on src pad");
return;
}