mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-10-31 22:58:51 +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 {
|
impl From<CompressionLevel> for png::Compression {
|
||||||
|
#[allow(deprecated)]
|
||||||
fn from(value: CompressionLevel) -> Self {
|
fn from(value: CompressionLevel) -> Self {
|
||||||
match value {
|
match value {
|
||||||
CompressionLevel::Default => png::Compression::Default,
|
CompressionLevel::Default => png::Compression::Default,
|
||||||
|
|
Loading…
Reference in a new issue