mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
validate: Execute position right when the pipeline reaches PAUSED
We might go to PAUSED SYNC if nothing happens in the pipeline
This commit is contained in:
parent
5d200f8819
commit
ba38d09961
1 changed files with 11 additions and 1 deletions
|
@ -841,9 +841,19 @@ message_cb (GstBus * bus, GstMessage * message, GstValidateScenario * scenario)
|
||||||
g_list_free (priv->needs_parsing);
|
g_list_free (priv->needs_parsing);
|
||||||
priv->needs_parsing = NULL;
|
priv->needs_parsing = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_add_get_position_source (scenario);
|
_add_get_position_source (scenario);
|
||||||
break;
|
break;
|
||||||
|
case GST_MESSAGE_STATE_CHANGED:
|
||||||
|
{
|
||||||
|
if (GST_MESSAGE_SRC (message) == GST_OBJECT (scenario->pipeline)) {
|
||||||
|
GstState nstate;
|
||||||
|
|
||||||
|
gst_message_parse_state_changed (message,
|
||||||
|
NULL, &nstate, NULL);
|
||||||
|
_add_get_position_source (scenario);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case GST_MESSAGE_ERROR:
|
case GST_MESSAGE_ERROR:
|
||||||
case GST_MESSAGE_EOS:
|
case GST_MESSAGE_EOS:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue