Skip to content

Commit

Permalink
#3592 assume eos is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 26, 2023
1 parent 4dc21e8 commit 959d0e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xpra/server/window/window_video_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def __init__(self, *args):
super().__init__(*args)
self.video_subregion = VideoSubregion(self.refresh_subregion, self.auto_refresh_delay, VIDEO_SUBREGION)
self.supports_scrolling : bool = False
self.supports_eos : bool= self.encoding_options.boolget("eos")
self.scroll_min_percent : int = self.encoding_options.intget("scrolling.min-percent", SCROLL_MIN_PERCENT)
self.scroll_preference : int = self.encoding_options.intget("scrolling.preference", 100)
self.supports_video_b_frames : Tuple[str,...] = self.encoding_options.strtupleget("video_b_frames", ())
Expand Down Expand Up @@ -298,7 +297,6 @@ def addcinfo(prefix, x):
"non-video" : self.non_video_encodings,
"video" : self.common_video_encodings,
"edge" : self.edge_encoding,
"eos" : self.supports_eos,
})
einfo = {
"pipeline_param" : self.get_pipeline_info(),
Expand Down Expand Up @@ -382,7 +380,7 @@ def ve_clean(self, ve) -> None:
#only send eos if this video encoder is still current,
#(otherwise, sending the new stream will have taken care of it already,
# and sending eos then would close the new stream, not the old one!)
if self.supports_eos and self._video_encoder==ve:
if self._video_encoder==ve:
log("sending eos for wid %i", self.wid)
self.queue_packet(("eos", self.wid))
if SAVE_VIDEO_STREAMS:
Expand Down

0 comments on commit 959d0e0

Please sign in to comment.