aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoder/lame_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/encoder/lame_encoder.c')
-rw-r--r--src/encoder/lame_encoder.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/encoder/lame_encoder.c b/src/encoder/lame_encoder.c
index 97431a817..03d3756b6 100644
--- a/src/encoder/lame_encoder.c
+++ b/src/encoder/lame_encoder.c
@@ -275,6 +275,14 @@ lame_encoder_read(struct encoder *_encoder, void *dest, size_t length)
return length;
}
+static const char *lame_encoder_mime_type = "audio/mpeg";
+
+static const char *
+lame_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
+{
+ return lame_encoder_mime_type;
+}
+
const struct encoder_plugin lame_encoder_plugin = {
.name = "lame",
.init = lame_encoder_init,
@@ -283,4 +291,5 @@ const struct encoder_plugin lame_encoder_plugin = {
.close = lame_encoder_close,
.write = lame_encoder_write,
.read = lame_encoder_read,
+ .get_mime_type = lame_encoder_get_mime_type,
};