mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
basesrc, basesink, baseparse, typefind: use GST_SEGMENT_FLAG with segment flags
This commit is contained in:
parent
f165a77fdc
commit
c51a2c1ddf
4 changed files with 7 additions and 7 deletions
|
@ -2911,7 +2911,7 @@ pause:
|
|||
|
||||
if (ret == GST_FLOW_EOS) {
|
||||
/* handle end-of-stream/segment */
|
||||
if (parse->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||
if (parse->segment.flags & GST_SEGMENT_FLAG_SEGMENT) {
|
||||
gint64 stop;
|
||||
|
||||
if ((stop = parse->segment.stop) == -1)
|
||||
|
|
|
@ -3591,7 +3591,7 @@ gst_base_sink_perform_seek (GstBaseSink * sink, GstPad * pad, GstEvent * event)
|
|||
if (res) {
|
||||
gst_segment_copy_into (&seeksegment, &sink->segment);
|
||||
|
||||
if (sink->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||
if (sink->segment.flags & GST_SEGMENT_FLAG_SEGMENT) {
|
||||
gst_element_post_message (GST_ELEMENT (sink),
|
||||
gst_message_new_segment_start (GST_OBJECT (sink),
|
||||
sink->segment.format, sink->segment.position));
|
||||
|
@ -3760,7 +3760,7 @@ paused:
|
|||
gst_pad_pause_task (pad);
|
||||
if (result == GST_FLOW_EOS) {
|
||||
/* perform EOS logic */
|
||||
if (basesink->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||
if (basesink->segment.flags & GST_SEGMENT_FLAG_SEGMENT) {
|
||||
gst_element_post_message (GST_ELEMENT_CAST (basesink),
|
||||
gst_message_new_segment_done (GST_OBJECT_CAST (basesink),
|
||||
basesink->segment.format, basesink->segment.position));
|
||||
|
|
|
@ -1622,7 +1622,7 @@ gst_base_src_perform_seek (GstBaseSrc * src, GstEvent * event, gboolean unlock)
|
|||
memcpy (&src->segment, &seeksegment, sizeof (GstSegment));
|
||||
GST_OBJECT_UNLOCK (src);
|
||||
|
||||
if (seeksegment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||
if (seeksegment.flags & GST_SEGMENT_FLAG_SEGMENT) {
|
||||
GstMessage *message;
|
||||
|
||||
message = gst_message_new_segment_start (GST_OBJECT (src),
|
||||
|
@ -2707,7 +2707,7 @@ pause:
|
|||
gint64 position;
|
||||
|
||||
/* perform EOS logic */
|
||||
flag_segment = (src->segment.flags & GST_SEEK_FLAG_SEGMENT) != 0;
|
||||
flag_segment = (src->segment.flags & GST_SEGMENT_FLAG_SEGMENT) != 0;
|
||||
format = src->segment.format;
|
||||
position = src->segment.position;
|
||||
|
||||
|
|
|
@ -478,7 +478,7 @@ gst_type_find_element_seek (GstTypeFindElement * typefind, GstEvent * event)
|
|||
typefind->offset = typefind->segment.start;
|
||||
|
||||
/* notify start of new segment */
|
||||
if (typefind->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||
if (typefind->segment.flags & GST_SEGMENT_FLAG_SEGMENT) {
|
||||
GstMessage *msg;
|
||||
|
||||
msg = gst_message_new_segment_start (GST_OBJECT (typefind),
|
||||
|
@ -1090,7 +1090,7 @@ pause:
|
|||
if (ret == GST_FLOW_EOS) {
|
||||
/* perform EOS logic */
|
||||
|
||||
if (typefind->segment.flags & GST_SEEK_FLAG_SEGMENT) {
|
||||
if (typefind->segment.flags & GST_SEGMENT_FLAG_SEGMENT) {
|
||||
gint64 stop;
|
||||
|
||||
/* for segment playback we need to post when (in stream time)
|
||||
|
|
Loading…
Reference in a new issue