summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-06-16 21:58:39 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-06-16 21:58:39 +0000
commitd80cba052a782dbf115073091c4d354a63047197 (patch)
tree085ece0bfd7ee13e693f14a4d13166bbd1194a4d /sys
parent27b946fca9e391500200c716982c943fc6683594 (diff)
Small fix for event cleanup
Original commit message from CVS: Small fix for event cleanup
Diffstat (limited to 'sys')
-rw-r--r--sys/oss/gstosssink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c
index fd2b6d4e..f2055fcc 100644
--- a/sys/oss/gstosssink.c
+++ b/sys/oss/gstosssink.c
@@ -502,7 +502,7 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf)
case GST_EVENT_DISCONTINUOUS:
{
gint64 value;
-
+
ioctl (osssink->fd, SNDCTL_DSP_RESET);
if (gst_event_discont_get_value (event, GST_FORMAT_TIME, &value)) {
if (!gst_clock_handle_discont (osssink->clock, value))
@@ -510,13 +510,14 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf)
osssink->handled = 0;
}
osssink->resync = TRUE;
- return;
+ break;
}
default:
gst_pad_event_default (pad, event);
return;
}
gst_event_free (event);
+ return;
}
if (!osssink->bps) {