mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
basevideodecoder: use basevideocodec discont field
This commit is contained in:
parent
1b151caf11
commit
1d99e8eafa
2 changed files with 3 additions and 6 deletions
|
@ -859,7 +859,7 @@ gst_base_video_decoder_reset (GstBaseVideoDecoder * base_video_decoder,
|
|||
GST_FORMAT_UNDEFINED);
|
||||
}
|
||||
|
||||
base_video_decoder->discont = TRUE;
|
||||
GST_BASE_VIDEO_CODEC (base_video_decoder)->discont = TRUE;
|
||||
base_video_decoder->have_sync = FALSE;
|
||||
|
||||
base_video_decoder->timestamp_offset = GST_CLOCK_TIME_NONE;
|
||||
|
@ -1224,9 +1224,9 @@ gst_base_video_decoder_finish_frame (GstBaseVideoDecoder * base_video_decoder,
|
|||
GST_BUFFER_FLAG_SET (src_buffer, GST_VIDEO_BUFFER_ONEFIELD);
|
||||
}
|
||||
}
|
||||
if (base_video_decoder->discont) {
|
||||
if (GST_BASE_VIDEO_CODEC (base_video_decoder)->discont) {
|
||||
GST_BUFFER_FLAG_SET (src_buffer, GST_BUFFER_FLAG_DISCONT);
|
||||
base_video_decoder->discont = FALSE;
|
||||
GST_BASE_VIDEO_CODEC (base_video_decoder)->discont = FALSE;
|
||||
}
|
||||
|
||||
GST_BUFFER_TIMESTAMP (src_buffer) = frame->presentation_timestamp;
|
||||
|
|
|
@ -107,9 +107,6 @@ struct _GstBaseVideoDecoder
|
|||
|
||||
/* maybe sort-of protected ? */
|
||||
|
||||
/* need mark discont */
|
||||
gboolean discont;
|
||||
|
||||
/* combine to yield (presentation) ts */
|
||||
GstClockTime timestamp_offset;
|
||||
int field_index;
|
||||
|
|
Loading…
Reference in a new issue