gstaudiostreamalign: Pass self as const pointer in getter functions
authorMarijn Suijten <marijns95@gmail.com>
Fri, 29 Jan 2021 20:40:33 +0000 (21:40 +0100)
committerMarijn Suijten <marijns95@gmail.com>
Fri, 29 Jan 2021 20:42:47 +0000 (21:42 +0100)
commit9ab400e26754e1c47accba2e135bf0990b0f04e4
treef8756df4a26bebf8f8b6a874b60e79fdcc76ae5c
parent11e6f8da925f3c2f7b157221cecf6326edd5f2be
gstaudiostreamalign: Pass self as const pointer in getter functions

It was noticed in [1] that `GstAudioStreamAlign` is a simple boxed type
that is passed as const in the copy function, but not as such in the
getters. These functions turn out to be the only users of `const = true`
overrides in `gstreamer-rs`. Since there is no locking or other advanced
caching/sharing going on (as happens with miniobjects) these functions
can safely take self as const pointer.

[1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/683#note_783129

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1025>
gst-libs/gst/audio/gstaudiostreamalign.c
gst-libs/gst/audio/gstaudiostreamalign.h