Set the discont flag when we receive a DISCONT buffer and only clear the discont
state when we pushed out a DISCONT buffer.
Fixes #626869
if (G_UNLIKELY (!gst_rtp_buffer_validate (in)))
goto invalid_buffer;
- priv->discont = GST_BUFFER_IS_DISCONT (in);
+ if (!priv->discont)
+ priv->discont = GST_BUFFER_IS_DISCONT (in);
timestamp = GST_BUFFER_TIMESTAMP (in);
/* convert to running_time and save the timestamp, this is the timestamp
priv->play_scale = 1.0;
priv->next_seqnum = -1;
priv->negotiated = FALSE;
+ priv->discont = FALSE;
break;
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
break;