mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 06:50:59 +00:00
pngenc: Allow using deprecated compression levels
This commit is contained in:
parent
ef78498dc2
commit
81ee30771c
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ pub(crate) enum FilterType {
|
|||
}
|
||||
|
||||
impl From<CompressionLevel> for png::Compression {
|
||||
#[allow(deprecated)]
|
||||
fn from(value: CompressionLevel) -> Self {
|
||||
match value {
|
||||
CompressionLevel::Default => png::Compression::Default,
|
||||
|
|
Loading…
Reference in a new issue