summaryrefslogtreecommitdiff
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>2010-02-24 00:06:55 (GMT)
committer Thiago Santos <thiago.sousa.santos@collabora.co.uk>2010-03-10 12:41:06 (GMT)
commitaa26b09c1c6190b199324c11af4ac2ffa5edab9e (patch) (side-by-side diff)
tree61285866f0ea51cb046fbd0277a1e4e5fc4bee68
parent1a60c7b04021cf2b7374e882b2e553b94cf57a47 (diff)
downloadgst-plugins-good-aa26b09c1c6190b199324c11af4ac2ffa5edab9e.zip
gst-plugins-good-aa26b09c1c6190b199324c11af4ac2ffa5edab9e.tar.gz
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
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--sys/ximage/gstximagesrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c
index 15c7d6c..e6fbe2f 100644
--- a/sys/ximage/gstximagesrc.c
+++ b/sys/ximage/gstximagesrc.c
@@ -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);