diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-03-05 21:54:31 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-03-05 21:54:31 +0000 |
commit | 525aacaf678e61beb90b2addd75af7d6fea9f451 (patch) | |
tree | d702fa65021939f4a692c42b3aa674a402d1614f /src/dxr3/dxr3_decoder.c | |
parent | 0ee66af23049eba5ff2aa82f80e316ec3ddb59d2 (diff) | |
download | xine-lib-525aacaf678e61beb90b2addd75af7d6fea9f451.tar.gz xine-lib-525aacaf678e61beb90b2addd75af7d6fea9f451.tar.bz2 |
dxr3 output should now work.
CVS patchset: 1537
CVS date: 2002/03/05 21:54:31
Diffstat (limited to 'src/dxr3/dxr3_decoder.c')
-rw-r--r-- | src/dxr3/dxr3_decoder.c | 27 |
1 files changed, 7 insertions, 20 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; } |