diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c index 779db9ca06..58d3c6fa48 100644 --- a/ext/resindvd/resindvdsrc.c +++ b/ext/resindvd/resindvdsrc.c @@ -1048,8 +1048,7 @@ rsn_dvdsrc_step (resinDvdSrc * src, gboolean have_dvd_lock) GST_TIME_FORMAT, GST_TIME_ARGS (src->pgc_duration), GST_TIME_ARGS (src->cur_position)); - message = gst_message_new_duration (GST_OBJECT (src), GST_FORMAT_TIME, - src->pgc_duration); + message = gst_message_new_duration_changed (GST_OBJECT (src)); gst_element_post_message (GST_ELEMENT (src), message); rsn_dvdsrc_prepare_streamsinfo_event (src); diff --git a/ext/soundtouch/gstpitch.cc b/ext/soundtouch/gstpitch.cc index e073d4efcf..ed76cd27a0 100644 --- a/ext/soundtouch/gstpitch.cc +++ b/ext/soundtouch/gstpitch.cc @@ -211,7 +211,7 @@ gst_pitch_update_duration (GstPitch * pitch) { GstMessage *m; - m = gst_message_new_duration (GST_OBJECT (pitch), GST_FORMAT_TIME, -1); + m = gst_message_new_duration_changed (GST_OBJECT (pitch)); gst_element_post_message (GST_ELEMENT (pitch), m); } diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index ba9c4d9da4..51d4d68afe 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -902,8 +902,7 @@ gst_hls_demux_cache_fragments (GstHLSDemux * demux) GST_TIME_ARGS (duration)); if (duration != GST_CLOCK_TIME_NONE) gst_element_post_message (GST_ELEMENT (demux), - gst_message_new_duration (GST_OBJECT (demux), - GST_FORMAT_TIME, duration)); + gst_message_new_duration_changed (GST_OBJECT (demux))); } /* Cache the first fragments */