gst: keep track of clock time

Invalidate the clock when the stream is destroyed and let the new
clock take the time of previous clock when no timing info is
available.
This commit is contained in:
Wim Taymans 2018-08-13 15:19:20 +02:00
parent 5a3883509b
commit a2cfb0882b
4 changed files with 18 additions and 9 deletions

View file

@ -82,6 +82,7 @@ struct _GstPipeWireSrc {
GstPipeWirePool *pool;
GQueue queue;
GstClock *clock;
GstClockTime last_time;
};
struct _GstPipeWireSrcClass {