mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ximagesrc: send new_segment with GST_FORMAT_TIME format
Instead of using BaseSrc default format GST_FORMAT_BYTES, send it in GST_FORMAT_TIME. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Fixes #611659
This commit is contained in:
parent
1a60c7b040
commit
aa26b09c1c
1 changed files with 1 additions and 0 deletions
|
@ -1117,6 +1117,7 @@ gst_ximage_src_class_init (GstXImageSrcClass * klass)
|
|||
static void
|
||||
gst_ximage_src_init (GstXImageSrc * ximagesrc, GstXImageSrcClass * klass)
|
||||
{
|
||||
gst_base_src_set_format (GST_BASE_SRC (ximagesrc), GST_FORMAT_TIME);
|
||||
gst_base_src_set_live (GST_BASE_SRC (ximagesrc), TRUE);
|
||||
gst_pad_set_fixatecaps_function (GST_BASE_SRC_PAD (ximagesrc),
|
||||
gst_ximage_src_fixate);
|
||||
|
|
Loading…
Reference in a new issue