Skip to content

Commit

Permalink
Revert "only use vaapi decode on the client if vaapi rendering is ena…
Browse files Browse the repository at this point in the history
…bled as well"

This reverts commit 5843c71.
  • Loading branch information
Kunsi committed Jan 28, 2025
1 parent 459b4fc commit 968a235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions vocto/video_codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,10 @@ def construct_video_encoder_pipeline(section):
return pipeline


def construct_video_decoder_pipeline(section, videosystem=None):
def construct_video_decoder_pipeline(section):
decoder = Config.getVideoDecoder(section)
codec, options = Config.getVideoCodec(section)
if videosystem == 'vaapi':
return vaapi_decoders[codec]
elif videosystem is not None:
return cpu_decoders[codec]
elif decoder == 'vaapi':
if decoder == 'vaapi':
return vaapi_decoders[codec]
elif decoder == 'cpu':
return cpu_decoders[codec]
Expand Down
4 changes: 2 additions & 2 deletions voctogui/lib/videodisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def __init__(self, video_drawing_area, audio_display, port, name, width=None, he
host=Config.getHost(),
port=port)

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

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

else:
video_decoder = None
Expand Down Expand Up @@ -78,6 +77,7 @@ def __init__(self, video_drawing_area, audio_display, port, name, width=None, he
""".format(name=name)

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

if videosystem == 'gl':
Expand Down

0 comments on commit 968a235

Please sign in to comment.