summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-08-15 12:58:50 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-08-15 13:00:06 +0200
commit64b06d1829493d9119022ed5e8476f3e9b486ec5 (patch)
tree1e6586604ec0f7f18c7fc5c211ab3db260bd4933
parent98527a6ea22198db575822dc8201cacea1d5d8bb (diff)
dcaparse: Don't look for a second syncword
There are streams out there that consistently contain garbage between every frame so we never ever find a second consecutive syncword. See https://bugzilla.gnome.org/show_bug.cgi?id=738237
-rw-r--r--gst/audioparsers/gstdcaparse.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gst/audioparsers/gstdcaparse.c b/gst/audioparsers/gstdcaparse.c
index 47dbdd094..d91e6bfe1 100644
--- a/gst/audioparsers/gstdcaparse.c
+++ b/gst/audioparsers/gstdcaparse.c
@@ -321,7 +321,6 @@ gst_dca_parse_handle_frame (GstBaseParse * parse,
GstDcaParse *dcaparse = GST_DCA_PARSE (parse);
GstBuffer *buf = frame->buffer;
GstByteReader r;
- gboolean parser_draining;
gboolean parser_in_sync;
gboolean terminator;
guint32 sync = 0;
@@ -379,6 +378,12 @@ gst_dca_parse_handle_frame (GstBaseParse * parse,
dcaparse->last_sync = sync;
+ /* FIXME: Don't look for a second syncword, there are streams out there
+ * that consistently contain garbage between every frame so we never ever
+ * find a second consecutive syncword.
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=738237
+ */
+#if 0
parser_draining = GST_BASE_PARSE_DRAINING (parse);
if (!parser_in_sync && !parser_draining) {
@@ -409,6 +414,7 @@ gst_dca_parse_handle_frame (GstBaseParse * parse,
goto cleanup;
}
}
+#endif
/* found frame */
ret = GST_FLOW_OK;