Skip to content
Commit 244d2226 authored by David Edmundson's avatar David Edmundson
Browse files

Simplify passing of framerate

PipeWireBaseEncodedStream::maxFramerate has a getter for the framerate
which returns the value of a std::optional without checking which is
very prone to error.

Rather than adding more optionals we can make Fractional a nullable
type, a denominator of 0 is not a valid value. If Fraction can specify a
null type we don't need optional anywhere.

A comparison operator is also added.
parent ca961714
Pipeline #484017 passed with stage
in 37 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment