mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
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:
parent
21a79241ed
commit
f0a1ab993f
4 changed files with 19 additions and 10 deletions
|
|
@ -46,6 +46,7 @@ struct _GstPipeWireClock {
|
|||
GstSystemClock parent;
|
||||
|
||||
struct pw_stream *stream;
|
||||
GstClockTime last_time;
|
||||
};
|
||||
|
||||
struct _GstPipeWireClockClass {
|
||||
|
|
@ -54,8 +55,8 @@ struct _GstPipeWireClockClass {
|
|||
|
||||
GType gst_pipewire_clock_get_type (void);
|
||||
|
||||
GstClock * gst_pipewire_clock_new (struct pw_stream *stream);
|
||||
|
||||
GstClock * gst_pipewire_clock_new (struct pw_stream *stream,
|
||||
GstClockTime last_time);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue