summaryrefslogtreecommitdiff
path: root/src/dxr3/dxr3_decode_spu.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-23 19:01:18 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-23 19:01:18 +0100
commita6a44d3e64f6b32ce53128937c8bb894fce4644d (patch)
tree1b5f93b69933e0868144fd48eb4b57d9c6e8c635 /src/dxr3/dxr3_decode_spu.c
parent057be3a11b092f1a1333e62945060cbb5c7ee59e (diff)
downloadxine-lib-a6a44d3e64f6b32ce53128937c8bb894fce4644d.tar.gz
xine-lib-a6a44d3e64f6b32ce53128937c8bb894fce4644d.tar.bz2
Don't create extra variables now that node is transparent to xine's build.
Diffstat (limited to 'src/dxr3/dxr3_decode_spu.c')
-rw-r--r--src/dxr3/dxr3_decode_spu.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/dxr3/dxr3_decode_spu.c b/src/dxr3/dxr3_decode_spu.c
index 7c51b5c4b..f3163e331 100644
--- a/src/dxr3/dxr3_decode_spu.c
+++ b/src/dxr3/dxr3_decode_spu.c
@@ -144,19 +144,15 @@ static inline void dxr3_swab_clut(int* clut);
/* inline helper implementations */
static inline int dxr3_present(xine_stream_t *stream)
{
- plugin_node_t *node;
- video_driver_class_t *vo_class;
int present = 0;
- if (stream->video_driver && stream->video_driver->node) {
- node = (plugin_node_t *)stream->video_driver->node;
- if (node->plugin_class) {
- vo_class = (video_driver_class_t *)node->plugin_class;
- if (vo_class->identifier)
- present = (strcmp(vo_class->identifier, DXR3_VO_ID) == 0);
- }
+ if (stream->video_driver && stream->video_driver->node &&
+ stream->video_driver->node->plugin_class ) {
+ const video_driver_class_t *const vo_class = (video_driver_class_t *)node->plugin_class;
+ if (vo_class->identifier)
+ present = (strcmp(vo_class->identifier, DXR3_VO_ID) == 0);
}
- llprintf(LOG_SPU, "dxr3 %s\n", present ? "present" : "not present");
+ llprintf(LOG_VID, "dxr3 %s\n", present ? "present" : "not present");
return present;
}