summaryrefslogtreecommitdiffstats
path: root/ext/flac/gstflac.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-07-06 20:49:52 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-07-06 20:49:52 +0000
commit292fec2a0bd1f221a46ad69c5100995d04c01057 (patch)
tree658db299e0e03b2454ff840730569d79539e67c4 /ext/flac/gstflac.c
parenta8183e9a3fa87cf4247c7df16207f440ea4069c0 (diff)
New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as descri...
Original commit message from CVS: New mimetypes gone into effect today - this commit changes all old mimetypes over to the new mimetypes spec as described in the previous commit's document. Note: some plugins will break, some pipelines will break, expect HEAD to be broken or at least not 100% working for a few days, but don't forget to report bugs
Diffstat (limited to 'ext/flac/gstflac.c')
-rw-r--r--ext/flac/gstflac.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/ext/flac/gstflac.c b/ext/flac/gstflac.c
index e955c2cc..af10d794 100644
--- a/ext/flac/gstflac.c
+++ b/ext/flac/gstflac.c
@@ -37,8 +37,11 @@ flac_caps_factory (void)
return
gst_caps_new (
"flac_flac",
- "application/x-flac",
- NULL);
+ "audio/x-flac",
+ /*gst_props_new (
+ "rate", GST_PROPS_INT_RANGE (11025, 48000),
+ "channels", GST_PROPS_INT_RANGE (1, 2),
+ NULL)*/ NULL);
}
static GstCaps*
@@ -47,10 +50,8 @@ raw_caps_factory (void)
return
gst_caps_new (
"flac_raw",
- "audio/raw",
+ "audio/x-raw-int",
gst_props_new (
- "format", GST_PROPS_STRING ("int"),
- "law", GST_PROPS_INT (0),
"endianness", GST_PROPS_INT (G_BYTE_ORDER),
"signed", GST_PROPS_BOOLEAN (TRUE),
"width", GST_PROPS_INT (16),
@@ -61,8 +62,8 @@ raw_caps_factory (void)
}
static GstTypeDefinition flacdefinition = {
- "flac_application/x-flac",
- "application/x-flac",
+ "flac_audio/x-flac",
+ "audio/x-flac",
".flac",
flac_type_find,
};
@@ -75,7 +76,7 @@ flac_type_find (GstBuffer *buf, gpointer private)
if (head != 0x664C6143)
return NULL;
- return gst_caps_new ("flac_type_find", "application/x-flac", NULL);
+ return gst_caps_new ("flac_type_find", "audio/x-flac", NULL);
}