diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index d2c0da5bd3..67e380a25b 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -216,7 +216,7 @@ static const GstFormat fmtlist[] = { GST_FORMAT_DEFAULT, GST_FORMAT_BYTES, GST_FORMAT_TIME, - 0 + GST_FORMAT_UNDEFINED }; #define GST_BASE_PARSE_GET_PRIVATE(obj) \ @@ -3123,7 +3123,7 @@ gst_base_parse_get_querytypes (GstPad * pad) GST_QUERY_FORMATS, GST_QUERY_SEEKING, GST_QUERY_CONVERT, - 0 + GST_QUERY_NONE }; return list; @@ -3735,6 +3735,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event) } else { GstEvent *new_event; GstBaseParseSeek *seek; + GstSeekFlags flags = (flush ? GST_SEEK_FLAG_FLUSH : GST_SEEK_FLAG_NONE); /* The only thing we need to do in PUSH-mode is to send the seek event (in bytes) to upstream. Segment / flush handling happens @@ -3742,7 +3743,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event) GST_DEBUG_OBJECT (parse, "seek in PUSH mode"); if (seekstop >= 0 && seekpos <= seekpos) seekstop = seekpos; - new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flush, + new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, GST_SEEK_TYPE_SET, seekpos, stop_type, seekstop); /* store segment info so its precise details can be reconstructed when