Commit 42dc1e93 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Store the stream duration also in the wg_parser_stream structure.

parent a03f7350
......@@ -110,6 +110,8 @@ struct wg_parser_stream
struct wg_parser_event event;
bool flushing, eos, enabled;
uint64_t duration;
};
struct parser
......@@ -1638,7 +1640,8 @@ static HRESULT GST_Connect(struct parser *This, IPin *pConnectPin)
struct parser_source *pin = This->sources[i];
struct wg_parser_stream *stream = pin->wg_stream;
pin->seek.llDuration = pin->seek.llStop = query_duration(stream->their_src);
stream->duration = query_duration(stream->their_src);
pin->seek.llDuration = pin->seek.llStop = stream->duration;
pin->seek.llCurrent = 0;
while (!stream->caps && !parser->error)
pthread_cond_wait(&parser->init_cond, &parser->mutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment