{
gboolean ret = TRUE;
GstQueue *queue;
+ GstEventType event_type = GST_EVENT_TYPE (event);
queue = GST_QUEUE (parent);
- switch (GST_EVENT_TYPE (event)) {
+ switch (event_type) {
case GST_EVENT_FLUSH_START:
STATUS (queue, pad, "received flush start event");
/* forward event */
if (!GST_EVENT_IS_STICKY (event)) {
GST_QUEUE_MUTEX_UNLOCK (queue);
goto out_flow_error;
- } else if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
+ } else if (event_type == GST_EVENT_EOS) {
if (queue->srcresult == GST_FLOW_NOT_LINKED
|| queue->srcresult < GST_FLOW_EOS) {
GST_QUEUE_MUTEX_UNLOCK (queue);
break;
}
if (ret == FALSE) {
- if (GST_EVENT_TYPE (event) == GST_EVENT_CAPS)
+ if (event_type == GST_EVENT_CAPS)
return GST_FLOW_NOT_NEGOTIATED;
return GST_FLOW_ERROR;
}