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)));
}
}
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 {