[PATCH] ximagesrc: send new_segment with GST_FORMAT_TIME format

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] ximagesrc: send new_segment with GST_FORMAT_TIME format

Thadeu Lima de Souza Cascardo
Instead of using BaseSrc default format GST_FORMAT_BYTES, send it in
GST_FORMAT_TIME.

Signed-off-by: Thadeu Lima de Souza Cascardo <[hidden email]>
---
 sys/ximage/gstximagesrc.c |    1 +
 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);
--
1.6.6.1


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] ximagesrc: send new_segment with GST_FORMAT_TIME format

Tim-Philipp Müller-2
On Tue, 2010-03-02 at 20:56 -0300, Thadeu Lima de Souza Cascardo wrote:

> Instead of using BaseSrc default format GST_FORMAT_BYTES, send it in
> GST_FORMAT_TIME.

Any chance you could file that patch in bugzilla? That way it's not
forgotten about if someone doesn't apply it immediately. Thanks!

 Cheers
  -Tim



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] ximagesrc: send new_segment with GST_FORMAT_TIME format

Thadeu Lima de Souza Cascardo
On Wed, Mar 03, 2010 at 12:32:36AM +0000, Tim-Philipp Müller wrote:

> On Tue, 2010-03-02 at 20:56 -0300, Thadeu Lima de Souza Cascardo wrote:
>
> > Instead of using BaseSrc default format GST_FORMAT_BYTES, send it in
> > GST_FORMAT_TIME.
>
> Any chance you could file that patch in bugzilla? That way it's not
> forgotten about if someone doesn't apply it immediately. Thanks!
>
>  Cheers
>   -Tim
Done.

Thanks, Tim.

Cascardo.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment