[MOVED FROM GST-P-FARSIGHT] Oops, set to no preroll when playing->paused too

20070917042649-3e2dc-94adb6aa0617e815a6e233232dabb4bbc48dc82c.gz
This commit is contained in:
Olivier Crete 2007-09-17 04:26:49 +00:00 committed by Edward Hervey
parent 90a23de629
commit 908f5167ae
2 changed files with 6 additions and 0 deletions

View file

@ -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 */

View file

@ -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 */