From 525aacaf678e61beb90b2addd75af7d6fea9f451 Mon Sep 17 00:00:00 2001 From: James Courtier-Dutton Date: Tue, 5 Mar 2002 21:54:31 +0000 Subject: dxr3 output should now work. CVS patchset: 1537 CVS date: 2002/03/05 21:54:31 --- src/dxr3/dxr3_decoder.c | 27 +++++++-------------------- src/dxr3/dxr3_video_out.c | 12 ++++++------ 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/src/dxr3/dxr3_decoder.c b/src/dxr3/dxr3_decoder.c index c352ec76f..78cabfe3b 100644 --- a/src/dxr3/dxr3_decoder.c +++ b/src/dxr3/dxr3_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_decoder.c,v 1.60 2002/02/15 11:46:57 guenter Exp $ + * $Id: dxr3_decoder.c,v 1.61 2002/03/05 21:54:31 jcdutton Exp $ * * dxr3 video and spu decoder plugin. Accepts the video and spu data * from XINE and sends it directly to the corresponding dxr3 devices. @@ -139,30 +139,17 @@ static int dxr3_ok; static void dxr3_presence_test( xine_t* xine) { - int fd, val; - vo_info_t *info; - - if (dxr3_tested) - return; - + int info; +/* FIXME: Get rid of global vars */ dxr3_tested = 1; dxr3_ok = 0; if (xine && xine->video_driver ) { - info = xine->video_driver->get_info(); - if ((strncmp (info->id, "dxr3", 4)) != 0) { - return; + info = xine->video_driver->get_property( xine->video_driver, VO_PROP_VO_TYPE); + printf("dxr3_presence_test:info=%d\n",info); + if (info != VO_TYPE_DXR3) { + return; } } - if ((fd = open(devname, O_WRONLY))<0) { - printf("dxr3: not detected (%s: %s)\n", - devname, strerror(errno)); - return; - } - if (ioctl(fd, EM8300_IOCTL_GET_AUDIOMODE, &val)<0) { - printf("dxr3: ioctl failed (%s)\n", strerror(errno)); - return; - } - close(fd); dxr3_ok = 1; } diff --git a/src/dxr3/dxr3_video_out.c b/src/dxr3/dxr3_video_out.c index 02d2f053f..8f91dcafa 100644 --- a/src/dxr3/dxr3_video_out.c +++ b/src/dxr3/dxr3_video_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_video_out.c,v 1.6 2002/02/25 23:44:05 jcdutton Exp $ + * $Id: dxr3_video_out.c,v 1.7 2002/03/05 21:54:31 jcdutton Exp $ * * mpeg1 encoding video out plugin for the dxr3. * @@ -440,11 +440,11 @@ static void dxr3_display_frame (vo_driver_t *this_gen, vo_frame_t *frame_gen) { dxr3_driver_t *this = (dxr3_driver_t*)this_gen; dxr3_frame_t *frame = (dxr3_frame_t*)frame_gen; - - if (this->mpeg_source == 0 && this->enc && this->enc->on_display_frame) - this->enc->on_display_frame(this, frame); - if (this->mpeg_source) - frame_gen->displayed(frame_gen); + if (this->mpeg_source == 0 && this->enc && this->enc->on_display_frame) { + this->enc->on_display_frame(this, frame); + } else { + frame_gen->displayed(frame_gen); + } /* for non-mpeg, the encoder plugin is responsible for calling * frame_gen->displayed(frame_gen) ! */ } -- cgit v1.2.3