A discont event should not flush the queue

Original commit message from CVS:
A discont event should not flush the queue
This commit is contained in:
Wim Taymans 2002-10-25 19:14:57 +00:00
parent ae36592abe
commit 2030bd0eb1
2 changed files with 2 additions and 8 deletions

View file

@ -337,11 +337,8 @@ restart:
GST_DEBUG_ELEMENT (GST_CAT_DATAFLOW, queue, "eos in on %s %d\n", GST_DEBUG_ELEMENT (GST_CAT_DATAFLOW, queue, "eos in on %s %d\n",
GST_ELEMENT_NAME (queue), queue->level_buffers); GST_ELEMENT_NAME (queue), queue->level_buffers);
break; break;
case GST_EVENT_DISCONTINUOUS:
gst_queue_locked_flush (queue);
break;
default: default:
/*gst_pad_event_default (pad, GST_EVENT (buf)); */ /* we put the event in the queue, we don't have to act ourselves */
break; break;
} }
} }

View file

@ -337,11 +337,8 @@ restart:
GST_DEBUG_ELEMENT (GST_CAT_DATAFLOW, queue, "eos in on %s %d\n", GST_DEBUG_ELEMENT (GST_CAT_DATAFLOW, queue, "eos in on %s %d\n",
GST_ELEMENT_NAME (queue), queue->level_buffers); GST_ELEMENT_NAME (queue), queue->level_buffers);
break; break;
case GST_EVENT_DISCONTINUOUS:
gst_queue_locked_flush (queue);
break;
default: default:
/*gst_pad_event_default (pad, GST_EVENT (buf)); */ /* we put the event in the queue, we don't have to act ourselves */
break; break;
} }
} }