Skip to content

Commit

Permalink
clear gstreamer timer when removing it
Browse files Browse the repository at this point in the history
fixes warnings about cancelling a non-existing source
  • Loading branch information
totaam committed Oct 12, 2024
1 parent 0e6f1e2 commit 75d2762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xpra/server/window/video_compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ def gstreamer_nodamage(self) -> None:
def cancel_gstreamer_timer(self) -> None:
gt = self.gstreamer_timer
if gt:
self.gstreamer_timer = 0
GLib.source_remove(gt)

def start_gstreamer_pipeline(self) -> bool:
Expand Down

0 comments on commit 75d2762

Please sign in to comment.