diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2007-09-17 04:26:49 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-21 17:48:03 +0100 |
commit | 908f5167aee4c2fe2d1eb241384ddc9052198f98 (patch) | |
tree | f3ff10e83692429d4655462d698070bdf9cdd2ca /gst | |
parent | 90a23de629aa0af1938465aa6212a4469caa3d69 (diff) | |
download | gst-plugins-bad-908f5167aee4c2fe2d1eb241384ddc9052198f98.tar.gz gst-plugins-bad-908f5167aee4c2fe2d1eb241384ddc9052198f98.tar.bz2 gst-plugins-bad-908f5167aee4c2fe2d1eb241384ddc9052198f98.zip |
[MOVED FROM GST-P-FARSIGHT] Oops, set to no preroll when playing->paused too
20070917042649-3e2dc-94adb6aa0617e815a6e233232dabb4bbc48dc82c.gz
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 */ |