{
/* with LOCK and/or STREAM_LOCK */
gboolean started;
- gboolean stream_started;
/* with STREAM_LOCK */
guint32 cookie; /* @data list cookie */
pads->priv->queuedpads = 0;
pads->priv->eospads = 0;
pads->priv->started = FALSE;
- pads->priv->stream_started = FALSE;
g_rec_mutex_init (&pads->stream_lock);
unref_data (pads->priv->earliest_data);
pads->priv->earliest_data = NULL;
pads->priv->earliest_time = GST_CLOCK_TIME_NONE;
- pads->priv->stream_started = FALSE;
GST_OBJECT_UNLOCK (pads);
/* Wake them up so they can end the chain functions. */
goto eat;
}
case GST_EVENT_STREAM_START:
- /* let the only the first one go through */
- if (!pads->priv->stream_started) {
- pads->priv->stream_started = TRUE;
- goto forward;
- } else {
- goto eat;
- }
- break;
+ /* drop stream start events, element must create its own start event,
+ * we can't just forward the first random stream start event we get */
+ goto eat;
case GST_EVENT_CAPS:
goto eat;
default: