basevideodecoder: use basevideocodec discont field
This commit is contained in:
parent
1b151caf11
commit
1d99e8eafa
@ -859,7 +859,7 @@ gst_base_video_decoder_reset (GstBaseVideoDecoder * base_video_decoder,
|
|||||||
GST_FORMAT_UNDEFINED);
|
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->have_sync = FALSE;
|
||||||
|
|
||||||
base_video_decoder->timestamp_offset = GST_CLOCK_TIME_NONE;
|
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);
|
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);
|
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;
|
GST_BUFFER_TIMESTAMP (src_buffer) = frame->presentation_timestamp;
|
||||||
|
@ -107,9 +107,6 @@ struct _GstBaseVideoDecoder
|
|||||||
|
|
||||||
/* maybe sort-of protected ? */
|
/* maybe sort-of protected ? */
|
||||||
|
|
||||||
/* need mark discont */
|
|
||||||
gboolean discont;
|
|
||||||
|
|
||||||
/* combine to yield (presentation) ts */
|
/* combine to yield (presentation) ts */
|
||||||
GstClockTime timestamp_offset;
|
GstClockTime timestamp_offset;
|
||||||
int field_index;
|
int field_index;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user