encoder/null: removed unused audio_format attribute
This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
#include "encoder_api.h"
|
#include "encoder_api.h"
|
||||||
#include "encoder_plugin.h"
|
#include "encoder_plugin.h"
|
||||||
#include "audio_format.h"
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -29,8 +28,6 @@
|
|||||||
struct null_encoder {
|
struct null_encoder {
|
||||||
struct encoder encoder;
|
struct encoder encoder;
|
||||||
|
|
||||||
struct audio_format audio_format;
|
|
||||||
|
|
||||||
unsigned char buffer[MAX_BUFFER];
|
unsigned char buffer[MAX_BUFFER];
|
||||||
size_t buffer_length;
|
size_t buffer_length;
|
||||||
};
|
};
|
||||||
@@ -64,12 +61,12 @@ null_encoder_finish(struct encoder *_encoder)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
null_encoder_open(struct encoder *_encoder, struct audio_format *audio_format,
|
null_encoder_open(struct encoder *_encoder,
|
||||||
|
G_GNUC_UNUSED struct audio_format *audio_format,
|
||||||
G_GNUC_UNUSED GError **error)
|
G_GNUC_UNUSED GError **error)
|
||||||
{
|
{
|
||||||
struct null_encoder *encoder = (struct null_encoder *)_encoder;
|
struct null_encoder *encoder = (struct null_encoder *)_encoder;
|
||||||
|
|
||||||
encoder->audio_format = *audio_format;
|
|
||||||
encoder->buffer_length = 0;
|
encoder->buffer_length = 0;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user