List Info

Thread: threaded window proc for vo_directx




threaded window proc for vo_directx
user name
2008-04-30 00:12:48
Hello,

this patch makes vo_directx use a separate thread for the
window proc
so the decoder/player is not freezed when e.g. moving the
window

without the patch window proc is executed in check_events()
I've looked a bit in the window proc to find potential
threads problems

control() does internal stuffs so it should be safe 
mplayer_put_key() can be called in dx window proc or in the
console
they cannot send a key message together, perhaps
the window message queue should handle it

I've made some "crazy typing" test but it orks
fine

Regards

-- 
Gianluigi Tiesi <sherpyanetfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cy
gwin

Re: threaded window proc for vo_directx
user name
2008-04-30 00:14:05
On Wed, Apr 30, 2008 at 07:12:48AM +0200, Gianluigi Tiesi
wrote:
> Hello,
> 
> this patch makes vo_directx use a separate thread for
the window proc
> so the decoder/player is not freezed when e.g. moving
the window
> 
> without the patch window proc is executed in
check_events()
> I've looked a bit in the window proc to find potential
threads problems
> 
> control() does internal stuffs so it should be safe 
> mplayer_put_key() can be called in dx window proc or in
the console
> they cannot send a key message together, perhaps
> the window message queue should handle it
> 
> I've made some "crazy typing" test but it
orks fine
> 

argh the attachment...


-- 
Gianluigi Tiesi <sherpyanetfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/

_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cy
gwin
  
Re: threaded window proc for vo_directx
user name
2008-04-30 00:30:27
Hi,

2008/4/30 Gianluigi Tiesi <mplayernetfarm.it>:
> On Wed, Apr 30, 2008 at 07:12:48AM +0200, Gianluigi
Tiesi wrote:
> > Hello,
> >
> > this patch makes vo_directx use a separate thread
for the window proc
> > so the decoder/player is not freezed when e.g.
moving the window
> >
> > without the patch window proc is executed in
check_events()
> > I've looked a bit in the window proc to find
potential threads problems
> >
> > control() does internal stuffs so it should be
safe
> > mplayer_put_key() can be called in dx window proc
or in the console
> > they cannot send a key message together, perhaps
> > the window message queue should handle it
> >
> > I've made some "crazy typing" test but
it orks fine
> >
>
> argh the attachment...

Actually I had a similar one, together with discussions
about it:

http://lists.mplayerhq.hu/pipermail/
mplayer-dev-eng/2007-October/054648.html

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cy
gwin

Re: threaded window proc for vo_directx
user name
2008-04-30 01:19:56
On Wed, Apr 30, 2008 at 01:30:27PM +0800, Zuxy Meng wrote:
> Hi,
> 
> 2008/4/30 Gianluigi Tiesi <mplayernetfarm.it>:
> > On Wed, Apr 30, 2008 at 07:12:48AM +0200,
Gianluigi Tiesi wrote:
> > > Hello,
> > >
> > > this patch makes vo_directx use a separate
thread for the window proc
> > > so the decoder/player is not freezed when
e.g. moving the window
> > >
> > > without the patch window proc is executed in
check_events()
> > > I've looked a bit in the window proc to find
potential threads problems
> > >
> > > control() does internal stuffs so it should
be safe
> > > mplayer_put_key() can be called in dx window
proc or in the console
> > > they cannot send a key message together,
perhaps
> > > the window message queue should handle it
> > >
> > > I've made some "crazy typing" test
but it orks fine
> > >
> >
> > argh the attachment...
> 
> Actually I had a similar one, together with discussions
about it:
> 
> http://lists.mplayerhq.hu/pipermail/
mplayer-dev-eng/2007-October/054648.html
> 

I remember such discussion but I forgot details and how
ended
I suspect I'll take it for my own builds only 

Regads

-- 
Gianluigi Tiesi <sherpyanetfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-cy
gwin

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )