mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
validate: Wait for the PAUSED state to be reached before executing actions
This commit is contained in:
parent
bb42d287e7
commit
aceba228ce
1 changed files with 4 additions and 3 deletions
|
@ -846,11 +846,12 @@ message_cb (GstBus * bus, GstMessage * message, GstValidateScenario * scenario)
|
|||
case GST_MESSAGE_STATE_CHANGED:
|
||||
{
|
||||
if (GST_MESSAGE_SRC (message) == GST_OBJECT (scenario->pipeline)) {
|
||||
GstState nstate;
|
||||
GstState nstate, pstate;
|
||||
|
||||
gst_message_parse_state_changed (message,
|
||||
NULL, &nstate, NULL);
|
||||
_add_get_position_source (scenario);
|
||||
&pstate, &nstate, NULL);
|
||||
if (pstate == GST_STATE_READY && nstate == GST_STATE_PAUSED)
|
||||
_add_get_position_source (scenario);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue