summaryrefslogtreecommitdiff
path: root/src/vdr/post_vdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vdr/post_vdr.h')
-rw-r--r--src/vdr/post_vdr.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/vdr/post_vdr.h b/src/vdr/post_vdr.h
index b16a2d2df..46aa8dcb3 100644
--- a/src/vdr/post_vdr.h
+++ b/src/vdr/post_vdr.h
@@ -62,19 +62,9 @@ inline static int vdr_is_vdr_stream(xine_stream_t *stream)
return 0;
}
- {
- input_class_t *input_class = stream->input_plugin->input_class;
-
- if (input_class->get_identifier)
- {
- const char *identifier = input_class->get_identifier(input_class);
- if (identifier
- && 0 == strcmp(identifier, "VDR"))
- {
- return 1;
- }
- }
- }
+ if (stream->input_plugin->input_class->identifier &&
+ strcmp(stream->input_plugin->input_class->identifier, "VDR"))
+ return 1;
return 0;
}