How to use cairooverlay to draw onto window
Olivier Aubert
olivier.aubert at liris.cnrs.fr
Tue Apr 24 12:34:29 PDT 2012
Hello
Could you explain the context of the memory leak when using
rsvgoverlay ? On what time scale does it occur, do you update the SVG or
display it once, etc. It would be even better if you had some basic code
that exhibited this behaviour.
Regards,
Olivier
On Mon, 2012-04-23 at 14:47 -0700, kususe wrote:
> I wanna understand how to use cairooverlay to draw during a video playing,
> cause simply overlaying svg images (created wuth matplotlib ad displayed
> whit rsvgoverlay plugin) got me a memory leak.
> So, I tried on a drawable window using pygk, but how to link this with
> cairooverlay?
> I coded:
>
> self.player.get_by_name("cairooverlay").connect("draw",self.draw)
> ....
>
> def draw_line(self):
> points=[(100,100),(200,200),(300,300),(400,400)]
> self.movie_window.window.draw_lines(self.gc, points)
> self.pangolayout.set_text("Line")
> self.movie_window.window.draw_layout(self.gc, 5, 50, self.pangolayout)
>
> but I got an error:
> draw_line() takes exactly 1 argument (5 given)
>
>
> but
> Other suggestions?
> (Coglogoinsert returns me a segfaults, yet reported to Bugzilla)
> thanks,
> K.
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-use-cairooverlay-to-draw-onto-window-tp4581810p4581810.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list