diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/dtmf/gstdtmfsrc.c | 3 | ||||
-rw-r--r-- | gst/dtmf/gstrtpdtmfsrc.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c index 0b8fb203..2429a71c 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 db4d3f91..9c796fff 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 */ |