vdpaumpegdec: don't send the EVENT_NEWSEGMENT downstream if we're seeking

This commit is contained in:
Carl-Anton Ingmarsson 2009-06-05 17:53:16 +02:00 committed by Jan Schmidt
parent 7316cfa186
commit 3864e0349b

View file

@ -893,8 +893,15 @@ gst_vdp_mpeg_decoder_sink_event (GstPad * pad, GstEvent * event)
stop, position);
}
/* if we seek ourselves we don't push out a newsegment now since we
* use the calculated timestamp of the first frame for this */
if (mpeg_dec->seeking) {
gst_event_unref (event);
return TRUE;
}
convert_error:
gst_pad_push_event (mpeg_dec->src, event);
res = gst_pad_push_event (mpeg_dec->src, event);
break;
}