mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
Don't send events on unusable pads
Original commit message from CVS: Don't send events on unusable pads
This commit is contained in:
parent
8f0aefcb71
commit
6bfb23d4d1
1 changed files with 5 additions and 3 deletions
|
@ -1123,12 +1123,14 @@ gst_avi_demux_handle_sink_event (GstAviDemux *avi_demux)
|
||||||
for (i = 0; i < avi_demux->num_streams; i++) {
|
for (i = 0; i < avi_demux->num_streams; i++) {
|
||||||
avi_stream_context *stream = &avi_demux->stream[i];
|
avi_stream_context *stream = &avi_demux->stream[i];
|
||||||
|
|
||||||
|
if (GST_PAD_IS_USABLE (stream->pad)) {
|
||||||
GST_DEBUG (GST_CAT_EVENT, "sending discont on %d %lld + %lld = %lld", i,
|
GST_DEBUG (GST_CAT_EVENT, "sending discont on %d %lld + %lld = %lld", i,
|
||||||
avi_demux->last_seek, stream->delay, avi_demux->last_seek + stream->delay);
|
avi_demux->last_seek, stream->delay, avi_demux->last_seek + stream->delay);
|
||||||
discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME,
|
discont = gst_event_new_discontinuous (FALSE, GST_FORMAT_TIME,
|
||||||
avi_demux->last_seek + stream->delay , NULL);
|
avi_demux->last_seek + stream->delay , NULL);
|
||||||
gst_pad_push (stream->pad, GST_BUFFER (discont));
|
gst_pad_push (stream->pad, GST_BUFFER (discont));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue