From 908f5167aee4c2fe2d1eb241384ddc9052198f98 Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Mon, 17 Sep 2007 04:26:49 +0000 Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Oops, set to no preroll when playing->paused too 20070917042649-3e2dc-94adb6aa0617e815a6e233232dabb4bbc48dc82c.gz --- gst/dtmf/gstdtmfsrc.c | 3 +++ gst/dtmf/gstrtpdtmfsrc.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 0b8fb20391..2429a71c66 100644 --- a/gst/dtmf/gstdtmfsrc.c +++ b/gst/dtmf/gstdtmfsrc.c @@ -829,6 +829,9 @@ gst_dtmf_src_change_state (GstElement * element, GstStateChange transition) goto failure; switch (transition) { + case GST_STATE_CHANGE_PLAYING_TO_PAUSED: + no_preroll = TRUE; + break; case GST_STATE_CHANGE_PAUSED_TO_READY: GST_DEBUG_OBJECT (dtmfsrc, "Flushing event queue"); /* Flushing the event queue */ diff --git a/gst/dtmf/gstrtpdtmfsrc.c b/gst/dtmf/gstrtpdtmfsrc.c index db4d3f9153..9c796fff4a 100644 --- a/gst/dtmf/gstrtpdtmfsrc.c +++ b/gst/dtmf/gstrtpdtmfsrc.c @@ -1007,6 +1007,9 @@ gst_rtp_dtmf_src_change_state (GstElement * element, GstStateChange transition) goto failure; switch (transition) { + case GST_STATE_CHANGE_PLAYING_TO_PAUSED: + no_preroll = TRUE; + break; case GST_STATE_CHANGE_PAUSED_TO_READY: /* Flushing the event queue */