MMFMWK-8420 http stream will abort abnormally switched from FFx-4 to FFx2
Drop event GST_EVENT_CUSTOM_DOWNSTREAM_STICKY when aiurdemux sink receive
this event to avoid typefind push event error in push mode.
Signed-off-by: Hou Qi <qi.hou@nxp.com>
diff --git a/plugins/aiurdemux/aiurdemux.c b/plugins/aiurdemux/aiurdemux.c
index 0cf4e58..f2bdc19 100755
--- a/plugins/aiurdemux/aiurdemux.c
+++ b/plugins/aiurdemux/aiurdemux.c
@@ -609,6 +609,7 @@
if (segment->stop < segment->start) {
gst_event_unref (event);
+ GST_ERROR_OBJECT (demux, "failed to handle sink event GST_EVENT_SEGMENT");
return FALSE;
}
@@ -665,6 +666,13 @@
goto drop;
break;
}
+ case GST_EVENT_CUSTOM_DOWNSTREAM_STICKY:
+ {
+ /* drop this event to avoid typefind push event error */
+ GST_WARNING ("need to drop sink event GST_EVENT_CUSTOM_DOWNSTREAM_STICKY");
+ gst_event_unref (event);
+ goto drop;
+ }
default:
GST_LOG_OBJECT(demux,"gst_aiurdemux_handle_sink_event event=%x",GST_EVENT_TYPE (event));
break;
@@ -673,6 +681,8 @@
res = gst_pad_event_default (demux->sinkpad, parent, event);
drop:
+ if (res == FALSE)
+ GST_ERROR_OBJECT (demux, "failed to handle sink event %" GST_PTR_FORMAT, event);
return res;
}