summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-03-05 10:39:33 +0200
committerStefan Kost <ensonic@users.sf.net>2009-03-05 10:39:33 +0200
commit388fa77c1138a169a2b7a83635be0b6a53a8f5d1 (patch)
treeb3cd9a8a3c50b17340a3c26348d387afc537d85f
parentbcaec3d907d7f2c9fe272999645348d956918c3e (diff)
audioresample: add missing break in event handling, remove dead code
-rw-r--r--gst/audioresample/gstaudioresample.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index 308f7abd6..2acbc5578 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -853,13 +853,12 @@ gst_audio_resample_event (GstBaseTransform * base, GstEvent * event)
GstAudioResample *resample = GST_AUDIO_RESAMPLE (base);
switch (GST_EVENT_TYPE (event)) {
- case GST_EVENT_FLUSH_START:
- break;
case GST_EVENT_FLUSH_STOP:
gst_audio_resample_reset_state (resample);
resample->next_offset = -1;
resample->next_ts = -1;
resample->next_upstream_ts = -1;
+ break;
case GST_EVENT_NEWSEGMENT:
gst_audio_resample_push_drain (resample);
gst_audio_resample_reset_state (resample);
@@ -867,11 +866,10 @@ gst_audio_resample_event (GstBaseTransform * base, GstEvent * event)
resample->next_ts = -1;
resample->next_upstream_ts = -1;
break;
- case GST_EVENT_EOS:{
+ case GST_EVENT_EOS:
gst_audio_resample_push_drain (resample);
gst_audio_resample_reset_state (resample);
break;
- }
default:
break;
}