use audio/x-wav instead of audio/wav. I don't know if we have a policy of matching GStreamer types with official mime...
Original commit message from CVS: use audio/x-wav instead of audio/wav. I don't know if we have a policy of matching GStreamer types with official mime types, but I figure it can't hurt.
This commit is contained in:
parent
a6857206f4
commit
7c41bba589
@ -45,7 +45,7 @@ GST_PAD_TEMPLATE_FACTORY (sink_template_factory,
|
|||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_CAPS_NEW (
|
GST_CAPS_NEW (
|
||||||
"wavparse_wav",
|
"wavparse_wav",
|
||||||
"audio/wav",
|
"audio/x-wav",
|
||||||
NULL
|
NULL
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -78,8 +78,8 @@ GST_PAD_TEMPLATE_FACTORY (src_template_factory,
|
|||||||
static GstTypeDefinition
|
static GstTypeDefinition
|
||||||
wavdefinition =
|
wavdefinition =
|
||||||
{
|
{
|
||||||
"wavparse_audio/wav",
|
"wavparse_audio/x-wav",
|
||||||
"audio/wav",
|
"audio/x-wav",
|
||||||
".wav",
|
".wav",
|
||||||
wav_type_find,
|
wav_type_find,
|
||||||
};
|
};
|
||||||
@ -157,7 +157,7 @@ wav_type_find (GstBuffer *buf, gpointer private)
|
|||||||
if (strncmp (&data[0], "RIFF", 4)) return NULL;
|
if (strncmp (&data[0], "RIFF", 4)) return NULL;
|
||||||
if (strncmp (&data[8], "WAVE", 4)) return NULL;
|
if (strncmp (&data[8], "WAVE", 4)) return NULL;
|
||||||
|
|
||||||
return gst_caps_new ("wav_type_find", "audio/wav", NULL);
|
return gst_caps_new ("wav_type_find", "audio/x-wav", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user