winegstreamer: Reset the push offset in parser_init_stream().

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-02-03 17:41:42 -06:00 committed by Alexandre Julliard
parent 87daa41eb3
commit c0b087e4e9
1 changed files with 2 additions and 2 deletions

View File

@ -1464,8 +1464,6 @@ static gboolean activate_push(GstPad *pad, gboolean activate)
pthread_join(parser->push_thread, NULL);
parser->push_thread = 0;
}
if (This->filter.state == State_Stopped)
parser->next_offset = parser->start_offset;
} else if (!parser->push_thread) {
int ret;
@ -1746,6 +1744,8 @@ static HRESULT parser_init_stream(struct strmbase_filter *iface)
/* DirectShow retains the old seek positions, but resets to them every time
* it transitions from stopped -> paused. */
parser->next_offset = parser->start_offset;
seeking = &filter->sources[0]->seek;
if (seeking->llStop && seeking->llStop != seeking->llDuration)
stop_type = GST_SEEK_TYPE_SET;