From: Miguel F. <mig...@us...> - 2006-01-26 12:41:03
|
Update of /cvsroot/xine/xine-lib/src/post/deinterlace In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21925/src/post/deinterlace Modified Files: xine_plugin.c Log Message: send events for tvtime filmmode changes Index: xine_plugin.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/post/deinterlace/xine_plugin.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -r1.46 -r1.47 --- xine_plugin.c 19 Sep 2005 16:14:02 -0000 1.46 +++ xine_plugin.c 26 Jan 2006 12:40:51 -0000 1.47 @@ -122,6 +122,7 @@ int cheap_mode; tvtime_t *tvtime; int tvtime_changed; + int tvtime_last_filmmode; int vo_deinterlace_enabled; int framecounter; @@ -391,6 +392,7 @@ this->tvtime = tvtime_new_context(); this->tvtime_changed++; + this->tvtime_last_filmmode = 0; pthread_mutex_init (&this->lock, NULL); @@ -719,6 +721,15 @@ this->tvtime_changed = 0; } + if( this->tvtime_last_filmmode != this->tvtime->filmmode ) { + xine_event_t event; + event.type = XINE_EVENT_POST_TVTIME_FILMMODE_CHANGE; + event.stream = stream; + event.data = (void *)&this->tvtime->filmmode; + event.data_length = sizeof(this->tvtime->filmmode); + xine_event_send(stream, &event); + this->tvtime_last_filmmode = this->tvtime->filmmode; + } pthread_mutex_unlock (&this->lock); lprintf("frame flags pf: %d rff: %d tff: %d duration: %d\n", |