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:
Thadeu Lima de Souza Cascardo 2010-02-23 21:06:55 -03:00 committed by Thiago Santos
parent 1a60c7b040
commit aa26b09c1c

View file

@ -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);