projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e83a9b6
)
sbcdec: Require caps to be set before any data processing
author
Sebastian Dröge
<sebastian@centricular.com>
Thu, 5 Dec 2013 11:05:30 +0000
(12:05 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 5 Dec 2013 11:05:30 +0000
(12:05 +0100)
ext/sbc/gstsbcdec.c
patch
|
blob
|
history
diff --git
a/ext/sbc/gstsbcdec.c
b/ext/sbc/gstsbcdec.c
index
d1b6af9
..
9e2eb5b
100644
(file)
--- a/
ext/sbc/gstsbcdec.c
+++ b/
ext/sbc/gstsbcdec.c
@@
-75,9
+75,6
@@
gst_sbc_dec_handle_frame (GstAudioDecoder * audio_dec, GstBuffer * buf)
if (G_UNLIKELY (buf == NULL))
return GST_FLOW_OK;
- if (G_UNLIKELY (dec->frame_len == 0))
- return GST_FLOW_NOT_NEGOTIATED;
-
gst_buffer_map (buf, &in_map, GST_MAP_READ);
if (G_UNLIKELY (in_map.size == 0))
@@
-238,6
+235,8
@@
gst_sbc_dec_class_init (GstSbcDecClass * klass)
static void
gst_sbc_dec_init (GstSbcDec * dec)
{
+ gst_audio_decoder_set_needs_format (GST_AUDIO_DECODER (dec), TRUE);
+
dec->samples_per_frame = 0;
dec->frame_len = 0;
}