mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
gst_message_new_duration() -> gst_message_new_duration_changed()
This commit is contained in:
parent
5dafecad31
commit
a99a1042b9
3 changed files with 3 additions and 6 deletions
|
@ -1448,9 +1448,7 @@ gst_ogg_pad_handle_push_mode_state (GstOggPad * pad, ogg_page * page)
|
|||
ogg->push_time_length = ogg->total_time;
|
||||
GST_INFO_OBJECT (ogg, "New duration found: %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (ogg->total_time));
|
||||
message =
|
||||
gst_message_new_duration (GST_OBJECT (ogg), GST_FORMAT_TIME,
|
||||
ogg->total_time);
|
||||
message = gst_message_new_duration_changed (GST_OBJECT (ogg));
|
||||
gst_element_post_message (GST_ELEMENT (ogg), message);
|
||||
|
||||
GST_DEBUG_OBJECT (ogg,
|
||||
|
|
|
@ -977,8 +977,7 @@ gst_app_src_create (GstBaseSrc * bsrc, guint64 offset, guint size,
|
|||
GST_OBJECT_UNLOCK (appsrc);
|
||||
|
||||
gst_element_post_message (GST_ELEMENT (appsrc),
|
||||
gst_message_new_duration (GST_OBJECT (appsrc), GST_FORMAT_BYTES,
|
||||
priv->size));
|
||||
gst_message_new_duration_changed (GST_OBJECT (appsrc)));
|
||||
} else {
|
||||
GST_OBJECT_UNLOCK (appsrc);
|
||||
}
|
||||
|
|
|
@ -1145,7 +1145,7 @@ gst_audio_cd_src_update_duration (GstAudioCdSrc * src)
|
|||
basesrc->segment.duration = dur;
|
||||
|
||||
gst_element_post_message (GST_ELEMENT (src),
|
||||
gst_message_new_duration (GST_OBJECT (src), GST_FORMAT_TIME, -1));
|
||||
gst_message_new_duration_changed (GST_OBJECT (src)));
|
||||
|
||||
GST_LOG_OBJECT (src, "duration updated to %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (dur));
|
||||
|
|
Loading…
Reference in a new issue