videomixer: Only reset QoS information and send a NEWSEGMENT event downstream for NEWSEGMENT events on the master pad

This commit is contained in:
Sebastian Dröge 2010-07-21 08:11:23 +02:00
parent eb81574469
commit 38124ef5e5

View file

@ -1751,8 +1751,10 @@ gst_videomixer_sink_event (GstPad * pad, GstEvent * event)
vpad->queued = 0;
break;
case GST_EVENT_NEWSEGMENT:
videomixer->sendseg = TRUE;
gst_videomixer_reset_qos (videomixer);
if (!videomixer->master || vpad == videomixer->master) {
videomixer->sendseg = TRUE;
gst_videomixer_reset_qos (videomixer);
}
break;
default:
break;