encoders: remove unnessesary pointers to const strings
This commit is contained in:
parent
ac0bf1a445
commit
a76097210f
@ -332,12 +332,10 @@ flac_encoder_read(struct encoder *_encoder, void *dest, size_t length)
|
|||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *flac_encoder_mime_type = "audio/flac";
|
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
flac_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
flac_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
||||||
{
|
{
|
||||||
return flac_encoder_mime_type;
|
return "audio/flac";
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct encoder_plugin flac_encoder_plugin = {
|
const struct encoder_plugin flac_encoder_plugin = {
|
||||||
|
@ -275,12 +275,10 @@ lame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
|
|||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *lame_encoder_mime_type = "audio/mpeg";
|
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
lame_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
lame_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
||||||
{
|
{
|
||||||
return lame_encoder_mime_type;
|
return "audio/mpeg";
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct encoder_plugin lame_encoder_plugin = {
|
const struct encoder_plugin lame_encoder_plugin = {
|
||||||
|
@ -288,12 +288,10 @@ twolame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
|
|||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *twolame_encoder_mime_type = "audio/mpeg";
|
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
twolame_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
twolame_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
||||||
{
|
{
|
||||||
return twolame_encoder_mime_type;
|
return "audio/mpeg";
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct encoder_plugin twolame_encoder_plugin = {
|
const struct encoder_plugin twolame_encoder_plugin = {
|
||||||
|
@ -382,12 +382,10 @@ vorbis_encoder_read(struct encoder *_encoder, void *_dest, size_t length)
|
|||||||
return nbytes;
|
return nbytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *vorbis_encoder_mime_type = "application/x-ogg";
|
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
vorbis_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
vorbis_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
||||||
{
|
{
|
||||||
return vorbis_encoder_mime_type;
|
return "application/x-ogg";
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct encoder_plugin vorbis_encoder_plugin = {
|
const struct encoder_plugin vorbis_encoder_plugin = {
|
||||||
|
@ -253,12 +253,10 @@ wave_encoder_read(struct encoder *_encoder, void *dest, size_t length)
|
|||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *wave_encoder_mime_type = "audio/wav";
|
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
wave_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
wave_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
|
||||||
{
|
{
|
||||||
return wave_encoder_mime_type;
|
return "audio/wav";
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct encoder_plugin wave_encoder_plugin = {
|
const struct encoder_plugin wave_encoder_plugin = {
|
||||||
|
Loading…
Reference in New Issue
Block a user