cmmldec: fix flow return handling
Fix buggy GST_FLOW_IS_FATAL substitution, and 'make check': - if (!GST_FLOW_IS_FATAL (dec->flow_return) && !dec->sent_root) { + if (dec->flow_return != GST_FLOW_OK && !dec->sent_root) {
This commit is contained in:
parent
a313bc7524
commit
fff0e878bf
@ -511,7 +511,7 @@ gst_cmml_dec_parse_first_header (GstCmmlDec * dec, GstBuffer * buffer)
|
|||||||
/* if there is a processing instruction, gst_cmml_dec_parse_preamble
|
/* if there is a processing instruction, gst_cmml_dec_parse_preamble
|
||||||
* will be triggered. Otherwise we need to call it manually.
|
* will be triggered. Otherwise we need to call it manually.
|
||||||
*/
|
*/
|
||||||
if (dec->flow_return != GST_FLOW_OK && !dec->sent_root) {
|
if (dec->flow_return == GST_FLOW_OK && !dec->sent_root) {
|
||||||
guchar *preamble = (guchar *) g_strndup ((gchar *) GST_BUFFER_DATA (buffer),
|
guchar *preamble = (guchar *) g_strndup ((gchar *) GST_BUFFER_DATA (buffer),
|
||||||
GST_BUFFER_SIZE (buffer));
|
GST_BUFFER_SIZE (buffer));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user