summaryrefslogtreecommitdiff
path: root/gst/rawparse/plugin.c
diff options
context:
space:
mode:
authorCarlos Rafael Giani <dv@pseudoterminal.org>2016-03-04 22:10:47 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-05-15 13:19:48 +0300
commitb415d7b34f5a5d030165f2596e7074cc45bd48a4 (patch)
tree27e4d721a65bdcabd75779d60a245149be17e55a /gst/rawparse/plugin.c
parentb42ccb0556164a1d1e6f979aee633a3ef289e4fd (diff)
downloadgstreamer-plugins-bad-b415d7b34f5a5d030165f2596e7074cc45bd48a4.tar.gz
rawparse: Add unaligned raw audio parsing to audioparse and add new element
This helps in cases where raw audio data is being delivered, but the buffers do not come in sample aligned sizes. The new unalignedaudioparse bin can be autoplugged and configures an internal audioparse element to align the data. audioparse itself gets support for audio/x-unaligned-raw input caps; the output caps then contain the same information, except that the name is changed to audio/x-raw (since audioparse aligns the data). This ensures that souphttpsrc ! audioparse still works. https://bugzilla.gnome.org/show_bug.cgi?id=689460
Diffstat (limited to 'gst/rawparse/plugin.c')
-rw-r--r--gst/rawparse/plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/rawparse/plugin.c b/gst/rawparse/plugin.c
index dc860e18f..bb21f77b1 100644
--- a/gst/rawparse/plugin.c
+++ b/gst/rawparse/plugin.c
@@ -3,6 +3,7 @@
#endif
#include <gst/gst.h>
+#include "gstunalignedaudioparse.h"
#include "gstaudioparse.h"
#include "gstvideoparse.h"
@@ -15,6 +16,8 @@ plugin_init (GstPlugin * plugin)
gst_video_parse_get_type ());
ret &= gst_element_register (plugin, "audioparse", GST_RANK_NONE,
gst_audio_parse_get_type ());
+ ret &= gst_element_register (plugin, "unalignedaudioparse", GST_RANK_MARGINAL,
+ gst_unaligned_audio_parse_get_type ());
return ret;
}