help with restarting video

17 views
Skip to first unread message

Blaine Booher

unread,
Dec 14, 2012, 2:37:24 PM12/14/12
to pyglet...@googlegroups.com
hi guys,

how can i properly restart a pyglet.media.Player() instance?

i've tried tearing it down and rebuilding (deleting all instances) but I get a memory leak. I've tried player.seek(0) which causes all kinds of issues. I've tried dispatch_event('on_eos') which resets the video but not the audio.

i don't mind deleting the source and player and then rebuilding... but the memory leak issue is a huge pain.

what else can i try?

Blaine Booher

unread,
Dec 17, 2012, 1:58:34 PM12/17/12
to pyglet...@googlegroups.com
Any takers? I'm sure it's an easy fix, but this memory leak is completely hosing my application.

Adam Bark

unread,
Dec 17, 2012, 2:59:06 PM12/17/12
to pyglet...@googlegroups.com
Can you open an issue on googlecode please? Put what OS you're using on there and how exactly you're trying to delete all of the instances. Do you know that in python things don't get cleared up immediately? How severe is this memory leak?

Blaine

unread,
Dec 18, 2012, 11:20:16 AM12/18/12
to pyglet...@googlegroups.com
Thanks, I'll try that route.

Leak is pretty severe in that it takes up about 10MB of memory every time I re-load the video. So in little time my little device fills up.

I'm going to try experimenting with the EOS events to see if I can trigger a loop event. Maybe that will work.



--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To post to this group, send email to pyglet...@googlegroups.com.
To unsubscribe from this group, send email to pyglet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.

Reply all
Reply to author
Forward
0 new messages