mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +00:00
Small fix for event cleanup
Original commit message from CVS: Small fix for event cleanup
This commit is contained in:
parent
27b946fca9
commit
d80cba052a
1 changed files with 3 additions and 2 deletions
|
@ -502,7 +502,7 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf)
|
||||||
case GST_EVENT_DISCONTINUOUS:
|
case GST_EVENT_DISCONTINUOUS:
|
||||||
{
|
{
|
||||||
gint64 value;
|
gint64 value;
|
||||||
|
|
||||||
ioctl (osssink->fd, SNDCTL_DSP_RESET);
|
ioctl (osssink->fd, SNDCTL_DSP_RESET);
|
||||||
if (gst_event_discont_get_value (event, GST_FORMAT_TIME, &value)) {
|
if (gst_event_discont_get_value (event, GST_FORMAT_TIME, &value)) {
|
||||||
if (!gst_clock_handle_discont (osssink->clock, value))
|
if (!gst_clock_handle_discont (osssink->clock, value))
|
||||||
|
@ -510,13 +510,14 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf)
|
||||||
osssink->handled = 0;
|
osssink->handled = 0;
|
||||||
}
|
}
|
||||||
osssink->resync = TRUE;
|
osssink->resync = TRUE;
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
gst_pad_event_default (pad, event);
|
gst_pad_event_default (pad, event);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
gst_event_free (event);
|
gst_event_free (event);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!osssink->bps) {
|
if (!osssink->bps) {
|
||||||
|
|
Loading…
Reference in a new issue