Skip to content

Commit

Permalink
#3706 expose 'frame' counter
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 10, 2023
1 parent 55e68d4 commit d7ce392
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xpra/codecs/gstreamer/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def on_new_sample(self, _bus):
if size:
data = buf.extract_dup(0, size)
#log(" output=%s", hexstr(data))
client_info = {}
client_info = {
"frame" : self.frames,
}
self.frames += 1
pts = normv(buf.pts)
if pts>=0:
client_info["timestamp"] = pts
Expand Down

0 comments on commit d7ce392

Please sign in to comment.