Skip to content

window: Disable video track when toplevel gets suspended

Guido Günther requested to merge toplevel-suspend into main

@rmader I think this is as good as it gets or can we maybe save some more cycles (we want audio to continue when the player is in the background)

G_MESSAGES_DEBUG=livi-window prints a log message when the video decoding is resumed/suspended (audio isn't affected as we want to like like we're playing the video in the background). On intel this halves the CPU usage in a nested session for me.

Signed-off-by: Guido Günther agx@sigxcpu.org

Edited by Guido Günther

Merge request reports

Loading