mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
fix mulawdec
Original commit message from CVS: fix mulawdec
This commit is contained in:
parent
5f6624172b
commit
6c552d4217
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-02-25 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/law/mulaw-decode.c: (mulawdec_link):
|
||||||
|
* gst/law/mulaw.c: (plugin_init):
|
||||||
|
fix mulawdec so it actually works again
|
||||||
|
|
||||||
2004-02-24 Arwed v. Merkatz <v.merkatz@gmx.net>
|
2004-02-24 Arwed v. Merkatz <v.merkatz@gmx.net>
|
||||||
|
|
||||||
reviewed by: David Schleef <ds@schleef.org>
|
reviewed by: David Schleef <ds@schleef.org>
|
||||||
|
|
|
@ -73,7 +73,7 @@ mulawdec_link (GstPad *pad, const GstCaps *caps)
|
||||||
ret = gst_structure_get_int (structure, "channels", &channels);
|
ret = gst_structure_get_int (structure, "channels", &channels);
|
||||||
if (!ret) return GST_PAD_LINK_REFUSED;
|
if (!ret) return GST_PAD_LINK_REFUSED;
|
||||||
|
|
||||||
tempcaps = gst_caps_new_simple ("audio/x-mulaw",
|
tempcaps = gst_caps_new_simple ("audio/x-raw-int",
|
||||||
"depth", G_TYPE_INT, 16,
|
"depth", G_TYPE_INT, 16,
|
||||||
"width", G_TYPE_INT, 16,
|
"width", G_TYPE_INT, 16,
|
||||||
"signed", G_TYPE_BOOLEAN, TRUE,
|
"signed", G_TYPE_BOOLEAN, TRUE,
|
||||||
|
|
|
@ -50,7 +50,7 @@ plugin_init (GstPlugin *plugin)
|
||||||
if (!gst_element_register (plugin, "mulawenc",
|
if (!gst_element_register (plugin, "mulawenc",
|
||||||
GST_RANK_NONE, GST_TYPE_MULAWENC) ||
|
GST_RANK_NONE, GST_TYPE_MULAWENC) ||
|
||||||
!gst_element_register (plugin, "mulawdec",
|
!gst_element_register (plugin, "mulawdec",
|
||||||
GST_RANK_PRIMARY, GST_TYPE_MULAWENC))
|
GST_RANK_PRIMARY, GST_TYPE_MULAWDEC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue