gst_message_new_duration() -> gst_message_new_duration_changed()

This commit is contained in:
Tim-Philipp Müller 2012-09-02 01:27:17 +01:00
parent 5dafecad31
commit a99a1042b9
3 changed files with 3 additions and 6 deletions

View file

@ -1448,9 +1448,7 @@ gst_ogg_pad_handle_push_mode_state (GstOggPad * pad, ogg_page * page)
ogg->push_time_length = ogg->total_time; ogg->push_time_length = ogg->total_time;
GST_INFO_OBJECT (ogg, "New duration found: %" GST_TIME_FORMAT, GST_INFO_OBJECT (ogg, "New duration found: %" GST_TIME_FORMAT,
GST_TIME_ARGS (ogg->total_time)); GST_TIME_ARGS (ogg->total_time));
message = message = gst_message_new_duration_changed (GST_OBJECT (ogg));
gst_message_new_duration (GST_OBJECT (ogg), GST_FORMAT_TIME,
ogg->total_time);
gst_element_post_message (GST_ELEMENT (ogg), message); gst_element_post_message (GST_ELEMENT (ogg), message);
GST_DEBUG_OBJECT (ogg, GST_DEBUG_OBJECT (ogg,

View file

@ -977,8 +977,7 @@ gst_app_src_create (GstBaseSrc * bsrc, guint64 offset, guint size,
GST_OBJECT_UNLOCK (appsrc); GST_OBJECT_UNLOCK (appsrc);
gst_element_post_message (GST_ELEMENT (appsrc), gst_element_post_message (GST_ELEMENT (appsrc),
gst_message_new_duration (GST_OBJECT (appsrc), GST_FORMAT_BYTES, gst_message_new_duration_changed (GST_OBJECT (appsrc)));
priv->size));
} else { } else {
GST_OBJECT_UNLOCK (appsrc); GST_OBJECT_UNLOCK (appsrc);
} }

View file

@ -1145,7 +1145,7 @@ gst_audio_cd_src_update_duration (GstAudioCdSrc * src)
basesrc->segment.duration = dur; basesrc->segment.duration = dur;
gst_element_post_message (GST_ELEMENT (src), 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_LOG_OBJECT (src, "duration updated to %" GST_TIME_FORMAT,
GST_TIME_ARGS (dur)); GST_TIME_ARGS (dur));