aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoder/vorbis_encoder.c
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2009-12-03 20:11:32 +0100
committerViliam Mateicka <viliam.mateicka@gmail.com>2009-12-03 20:11:32 +0100
commit7b80e738102db1cf2cacf1e5118f5d51caf38c76 (patch)
tree759cfc0849bf44c5c932f1f2347132aaaff1f67d /src/encoder/vorbis_encoder.c
parent6d11711a0115c0fa2c51e08475407e4c17c73079 (diff)
downloadmpd-7b80e738102db1cf2cacf1e5118f5d51caf38c76.tar.gz
mpd-7b80e738102db1cf2cacf1e5118f5d51caf38c76.tar.xz
mpd-7b80e738102db1cf2cacf1e5118f5d51caf38c76.zip
encoders: implement new get_mime_types method
Diffstat (limited to '')
-rw-r--r--src/encoder/vorbis_encoder.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/encoder/vorbis_encoder.c b/src/encoder/vorbis_encoder.c
index d072bcd3f..df998efb2 100644
--- a/src/encoder/vorbis_encoder.c
+++ b/src/encoder/vorbis_encoder.c
@@ -382,6 +382,14 @@ vorbis_encoder_read(struct encoder *_encoder, void *_dest, size_t length)
return nbytes;
}
+static const char *vorbis_encoder_mime_type = "application/x-ogg";
+
+static const char *
+vorbis_encoder_get_mime_type(G_GNUC_UNUSED struct encoder *_encoder)
+{
+ return vorbis_encoder_mime_type;
+}
+
const struct encoder_plugin vorbis_encoder_plugin = {
.name = "vorbis",
.init = vorbis_encoder_init,
@@ -392,4 +400,5 @@ const struct encoder_plugin vorbis_encoder_plugin = {
.tag = vorbis_encoder_tag,
.write = vorbis_encoder_write,
.read = vorbis_encoder_read,
+ .get_mime_type = vorbis_encoder_get_mime_type,
};