summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@web.de>2009-01-04 17:48:39 +0100
committerLudwig Nussel <ludwig.nussel@web.de>2009-01-04 17:48:39 +0100
commitf6e6a60331a9ee14a06790c58cee7a24a1a307ce (patch)
tree80a6bd31ad2139bfa4cf8080bd1d6385f773de95
parent67346ce9f69ef46634ad151c9b4d096e59a0d3b8 (diff)
downloadxine-lib-f6e6a60331a9ee14a06790c58cee7a24a1a307ce.tar.gz
xine-lib-f6e6a60331a9ee14a06790c58cee7a24a1a307ce.tar.bz2
fake some data to make demuxer auto detection work
-rw-r--r--src/vdr/input_vdr.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/vdr/input_vdr.c b/src/vdr/input_vdr.c
index ee4a7fd7a..b2dea3864 100644
--- a/src/vdr/input_vdr.c
+++ b/src/vdr/input_vdr.c
@@ -1559,7 +1559,7 @@ static off_t vdr_plugin_get_length(input_plugin_t *this_gen)
static uint32_t vdr_plugin_get_capabilities(input_plugin_t *this_gen)
{
- return INPUT_CAP_NOCAP; /* INPUT_CAP_PREVIEW; */
+ return INPUT_CAP_PREVIEW;
}
static uint32_t vdr_plugin_get_blocksize(input_plugin_t *this_gen)
@@ -1676,16 +1676,13 @@ static int vdr_plugin_get_optional_data(input_plugin_t *this_gen,
void *data, int data_type)
{
vdr_input_plugin_t *this = (vdr_input_plugin_t *)this_gen;
- int preview_size = (this->preview_size > MAX_PREVIEW_SIZE) ? MAX_PREVIEW_SIZE : this->preview_size;
- (void)preview_size;
-/*
switch (data_type)
{
case INPUT_OPTIONAL_DATA_PREVIEW:
- memcpy (data, this->preview, preview_size);
- return preview_size;
+ /* just fake what mpeg_pes demuxer expects */
+ memcpy (data, "\x00\x00\x01\xe0\x00\x00", 6);
+ return 6;
}
-*/
return INPUT_OPTIONAL_UNSUPPORTED;
}