mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
gst_message_new_duration -> gst_message_new_duration_changed
This commit is contained in:
parent
5b394385b9
commit
b27ac94af2
2 changed files with 2 additions and 4 deletions
|
@ -692,8 +692,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src)
|
|||
basesrc = GST_BASE_SRC_CAST (src);
|
||||
basesrc->segment.duration = src->content_size;
|
||||
gst_element_post_message (GST_ELEMENT (src),
|
||||
gst_message_new_duration (GST_OBJECT (src), GST_FORMAT_BYTES,
|
||||
src->content_size));
|
||||
gst_message_new_duration_changed (GST_OBJECT (src)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3674,8 +3674,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
|||
GST_OBJECT_UNLOCK (demux);
|
||||
if (!demux->invalid_duration) {
|
||||
gst_element_post_message (GST_ELEMENT_CAST (demux),
|
||||
gst_message_new_duration (GST_OBJECT_CAST (demux),
|
||||
GST_FORMAT_TIME, GST_CLOCK_TIME_NONE));
|
||||
gst_message_new_duration_changed (GST_OBJECT_CAST (demux)));
|
||||
demux->invalid_duration = TRUE;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue