Zebediah Figura : winegstreamer: Consistently use GST_STATE_PAUSED for test-play.
Module: wine Branch: master Commit: b3e2009b5edfa653f7629901c2658b70f65538b8 URL: https://source.winehq.org/git/wine.git/?a=commit;h=b3e2009b5edfa653f7629901c... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Wed Jan 20 18:58:50 2021 -0600 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(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/winegstreamer/gstdemux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c index 9cf2379cb2c..90ba02bba5d 100644 --- a/dlls/winegstreamer/gstdemux.c +++ b/dlls/winegstreamer/gstdemux.c @@ -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) {
participants (1)
-
Alexandre Julliard