<div>Hi, all</div><div><br></div><div>I'm writing a Speaker Track plugin, but I'm confronting a strange issue. Which only causes CRITICAL warnings, the stream playback is fine.</div><div><br></div><div>Here is a segment of my code:</div>

<div><br></div><div><div>static void gst_speaker_track_init (GstSpeakerTrack * filter)</div><div>{</div><div>  GstPad * sinkpad = gst_element_get_static_pad (GST_ELEMENT (filter), "sink");</div><div>  GstPad * srcpad = gst_element_get_static_pad (GST_ELEMENT (filter), "src");;</div>

<div>  gst_pad_set_event_function (sinkpad, gst_speaker_track_sink_event);</div><div>  gst_pad_set_event_function (srcpad, gst_speaker_track_src_event);</div><div>  ...</div></div><div>}</div><div><br></div><div>And I've confirmed that this line causing the issue:</div>

<div><br></div><div> gst_pad_set_event_function (sinkpad, gst_speaker_track_sink_event);<br></div><div><br></div><div>When I'm trying to change the event function of the static sink pad, it causes lots of CRITICAL warnings which look like this:<br>

</div><div><br></div><div>(speakertrack_test:22165): GStreamer-CRITICAL **: gst_segment_to_running_time: assertion `segment->format == format' failed</div><div><br></div><div>(speakertrack_test:22165): GStreamer-CRITICAL **: gst_segment_to_stream_time: assertion `segment->format == format' failed</div>

<div><br></div><div>Here is the link of my code: <a href="https://github.com/duzy/gst-plugins-bad/blob/master/ext/speakertrack/gstspeakertrack.c">https://github.com/duzy/gst-plugins-bad/blob/master/ext/speakertrack/gstspeakertrack.c</a></div>

<div><br></div><div>Guys, do you have any ideas?</div><div><br></div><div>Regards</div><div>Duzy</div><div><br></div><div><br></div>