mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
* 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),
|
||||
GST_BUFFER_SIZE (buffer));
|
||||
|
||||
|
|
Loading…
Reference in a new issue