gst_pad_set_caps (sq->srcpad, caps);
result = gst_pad_push (sq->srcpad, buffer);
-
- if (result == GST_FLOW_UNEXPECTED) {
- GST_LOG_OBJECT (mq, "got UNEXPECTED from downstream");
- /* FIXME, dequeue items until we see EOS or NEWSEGMENT. If the queue is
- * empty, set a flag so that we pass unexpected upstream. */
- result = GST_FLOW_OK;
- }
} else if (GST_IS_EVENT (object)) {
GstEvent *event;
/* Wait while the buffers are processed */
g_mutex_lock (mutex);
- while (eos_seen < NPADS) {
+ while (eos_seen < 5) {
g_cond_wait (cond, mutex);
}
g_mutex_unlock (mutex);
/* Clean up */
- for (i = 0; i < NPADS; i++) {
+ for (i = 0; i < 5; i++) {
GstPad *mq_input = gst_pad_get_peer (inputpads[i]);
gst_pad_unlink (inputpads[i], mq_input);