mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
quicksettings/record: Set encoder
Encoders are not set by default anymore, attempt to set one. Fixes: https://invent.kde.org/plasma/plasma-mobile/-/issues/484
This commit is contained in:
parent
90abaad9c8
commit
678cd25a43
1 changed files with 4 additions and 1 deletions
|
|
@ -31,6 +31,9 @@ bool RecordUtil::startRecording(int nodeId)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set an encoder from what's available
|
||||||
|
m_pipeWireRecord->setEncoder(m_pipeWireRecord->suggestedEncoders().value(0, PipeWireRecord::NoEncoder));
|
||||||
|
|
||||||
switch (m_pipeWireRecord->encoder()) {
|
switch (m_pipeWireRecord->encoder()) {
|
||||||
case PipeWireRecord::H264Main:
|
case PipeWireRecord::H264Main:
|
||||||
case PipeWireRecord::H264Baseline:
|
case PipeWireRecord::H264Baseline:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue