mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Add a convenience function to create a Metadata::Padding object with a
certain size in one statement. Patch from Bastiaan Timmer <basjetimmer@yahoo.com>
This commit is contained in:
@@ -361,6 +361,12 @@ namespace FLAC {
|
||||
Prototype(FLAC__metadata_object_new(FLAC__METADATA_TYPE_PADDING), /*copy=*/false)
|
||||
{ }
|
||||
|
||||
Padding::Padding(unsigned length):
|
||||
Prototype(FLAC__metadata_object_new(FLAC__METADATA_TYPE_PADDING), /*copy=*/false)
|
||||
{
|
||||
set_length(length);
|
||||
}
|
||||
|
||||
Padding::~Padding()
|
||||
{ }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user