Skip to content

Commit 968a235

Browse files
committed
Revert "only use vaapi decode on the client if vaapi rendering is enabled as well"
This reverts commit 5843c71.
1 parent 459b4fc commit 968a235

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

vocto/video_codecs.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,10 @@ def construct_video_encoder_pipeline(section):
117117
return pipeline
118118

119119

120-
def construct_video_decoder_pipeline(section, videosystem=None):
120+
def construct_video_decoder_pipeline(section):
121121
decoder = Config.getVideoDecoder(section)
122122
codec, options = Config.getVideoCodec(section)
123-
if videosystem == 'vaapi':
124-
return vaapi_decoders[codec]
125-
elif videosystem is not None:
126-
return cpu_decoders[codec]
127-
elif decoder == 'vaapi':
123+
if decoder == 'vaapi':
128124
return vaapi_decoders[codec]
129125
elif decoder == 'cpu':
130126
return cpu_decoders[codec]

voctogui/lib/videodisplay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def __init__(self, video_drawing_area, audio_display, port, name, width=None, he
3737
host=Config.getHost(),
3838
port=port)
3939

40-
videosystem = Config.getVideoSystem()
4140
if Config.getPreviewsEnabled():
4241
self.log.info('using encoded previews instead of raw-video')
4342

@@ -47,7 +46,7 @@ def __init__(self, video_drawing_area, audio_display, port, name, width=None, he
4746
name=queue-video-{name}
4847
! {video_decoder}
4948
""".format(name=name,
50-
video_decoder=construct_video_decoder_pipeline('previews', videosystem))
49+
video_decoder=construct_video_decoder_pipeline('previews'))
5150

5251
else:
5352
video_decoder = None
@@ -78,6 +77,7 @@ def __init__(self, video_drawing_area, audio_display, port, name, width=None, he
7877
""".format(name=name)
7978

8079
# Video Display
80+
videosystem = Config.getVideoSystem()
8181
self.log.debug('Configuring for Video-System %s', videosystem)
8282

8383
if videosystem == 'gl':

0 commit comments

Comments
 (0)