g_warning ("Buffer list handling not implemented");
return GST_PAD_PROBE_DROP;
}
- if (info->type & GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) {
+ if (info->type & GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM ||
+ info->type & GST_PAD_PROBE_TYPE_EVENT_FLUSH) {
GstEvent *event = gst_pad_probe_info_get_event (info);
gboolean locked = FALSE;
g_warning ("Buffer list handling not implemented");
return GST_PAD_PROBE_DROP;
}
- if (info->type & GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) {
+ if (info->type & GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM ||
+ info->type & GST_PAD_PROBE_TYPE_EVENT_FLUSH) {
GstEvent *event = gst_pad_probe_info_get_event (info);
GST_LOG_OBJECT (pad, "Event %" GST_PTR_FORMAT, event);
mq_stream_ctx_ref (ctx);
ctx->src_pad_block_id =
- gst_pad_add_probe (q_src, GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM,
+ gst_pad_add_probe (q_src,
+ GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM | GST_PAD_PROBE_TYPE_EVENT_FLUSH,
(GstPadProbeCallback) handle_mq_output, ctx, (GDestroyNotify)
_pad_block_destroy_src_notify);
if (is_video && splitmux->reference_ctx != NULL) {
mq_stream_ctx_ref (ctx);
ctx->sink_pad_block_id =
- gst_pad_add_probe (q_sink, GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM,
+ gst_pad_add_probe (q_sink,
+ GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM | GST_PAD_PROBE_TYPE_EVENT_FLUSH,
(GstPadProbeCallback) handle_mq_input, ctx, (GDestroyNotify)
_pad_block_destroy_sink_notify);