winegstreamer: Consistently use GST_STATE_PAUSED for test-play.

It does not matter whether we use PAUSED or PLAYING, but we should at least be
consistent.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-01-20 18:58:50 -06:00 committed by Alexandre Julliard
parent ef79e902a6
commit b3e2009b5e
1 changed files with 2 additions and 2 deletions

View File

@ -1875,7 +1875,7 @@ static BOOL decodebin_parser_init_gst(struct parser *filter)
return FALSE;
}
gst_element_set_state(filter->container, GST_STATE_PLAYING);
gst_element_set_state(filter->container, GST_STATE_PAUSED);
ret = gst_element_get_state(filter->container, NULL, NULL, -1);
if (ret == GST_STATE_CHANGE_FAILURE)
{
@ -2776,7 +2776,7 @@ static BOOL avi_splitter_init_gst(struct parser *filter)
return FALSE;
}
gst_element_set_state(filter->container, GST_STATE_PLAYING);
gst_element_set_state(filter->container, GST_STATE_PAUSED);
ret = gst_element_get_state(filter->container, NULL, NULL, -1);
if (ret == GST_STATE_CHANGE_FAILURE)
{