summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-03-05 21:54:31 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-03-05 21:54:31 +0000
commit525aacaf678e61beb90b2addd75af7d6fea9f451 (patch)
treed702fa65021939f4a692c42b3aa674a402d1614f /src
parent0ee66af23049eba5ff2aa82f80e316ec3ddb59d2 (diff)
downloadxine-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')
-rw-r--r--src/dxr3/dxr3_decoder.c27
-rw-r--r--src/dxr3/dxr3_video_out.c12
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) ! */
}