mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Revert "validate: use segments to detect success of flushing seeks too"
This reverts commit c47cc7ba90
.
Regressions on the test server, apparently linked to this patchset.
This commit is contained in:
parent
d78c20322f
commit
09988a97bf
1 changed files with 17 additions and 16 deletions
|
@ -86,9 +86,6 @@ static GList *action_types = NULL;
|
|||
static void gst_validate_scenario_dispose (GObject * object);
|
||||
static void gst_validate_scenario_finalize (GObject * object);
|
||||
static GstValidateActionType *_find_action_type (const gchar * type_name);
|
||||
static void
|
||||
gst_validate_scenario_update_segment_from_seek (GstValidateScenario * scenario,
|
||||
GstEvent * seek);
|
||||
|
||||
static GPrivate main_thread_priv;
|
||||
|
||||
|
@ -441,20 +438,10 @@ _check_new_segment_done (GstPad * pad, GstPadProbeInfo * info,
|
|||
GstValidateAction * action)
|
||||
{
|
||||
GstEvent *event = GST_EVENT (info->data);
|
||||
GstValidateScenarioPrivate *priv = action->scenario->priv;
|
||||
|
||||
if (priv->last_seek && GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) {
|
||||
if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) {
|
||||
if (GST_EVENT_SEQNUM (event) == action->scenario->priv->expected_seqnum) {
|
||||
if (!--action->scenario->priv->segments_needed) {
|
||||
gst_validate_scenario_update_segment_from_seek (action->scenario,
|
||||
priv->last_seek);
|
||||
|
||||
if (priv->target_state == GST_STATE_PAUSED)
|
||||
priv->seeked_in_pause = TRUE;
|
||||
|
||||
gst_event_replace (&priv->last_seek, NULL);
|
||||
gst_validate_action_set_done (action);
|
||||
|
||||
return GST_PAD_PROBE_REMOVE;
|
||||
}
|
||||
}
|
||||
|
@ -611,8 +598,11 @@ gst_validate_scenario_execute_seek (GstValidateScenario * scenario,
|
|||
}
|
||||
gst_event_unref (seek);
|
||||
|
||||
/* After seeking, we wait for a new segment with a matching seqnum */
|
||||
if (ret != GST_VALIDATE_EXECUTE_ACTION_ERROR) {
|
||||
/* Flushing seeks will be deemed done when an ASYNC_DONE message gets
|
||||
received on the bus. We don't get one for non flushing seeks though,
|
||||
so we look for a new segment event with a matching seqnum. */
|
||||
if (ret != GST_VALIDATE_EXECUTE_ACTION_ERROR
|
||||
&& !(flags & GST_SEEK_FLAG_FLUSH)) {
|
||||
action->scenario->priv->segments_needed =
|
||||
_run_for_all_sinks (scenario, _add_segment_check_probe, action);
|
||||
}
|
||||
|
@ -1776,6 +1766,17 @@ message_cb (GstBus * bus, GstMessage * message, GstValidateScenario * scenario)
|
|||
|
||||
switch (GST_MESSAGE_TYPE (message)) {
|
||||
case GST_MESSAGE_ASYNC_DONE:
|
||||
if (priv->last_seek) {
|
||||
gst_validate_scenario_update_segment_from_seek (scenario,
|
||||
priv->last_seek);
|
||||
|
||||
if (priv->target_state == GST_STATE_PAUSED)
|
||||
priv->seeked_in_pause = TRUE;
|
||||
|
||||
gst_event_replace (&priv->last_seek, NULL);
|
||||
gst_validate_action_set_done (priv->actions->data);
|
||||
}
|
||||
|
||||
if (priv->needs_parsing) {
|
||||
GList *tmp;
|
||||
|
||||
|
|
Loading…
Reference in a new issue