mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
vdpaumpegdec: don't send the EVENT_NEWSEGMENT downstream if we're seeking
This commit is contained in:
parent
7316cfa186
commit
3864e0349b
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue