xine-lib 1.2.13-20230125hg15249
Data Structures | Macros | Functions | Variables
demux_slave.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/compat.h>
#include <xine/demux.h>

Data Structures

struct  demux_slave_t
 

Macros

#define LOG_MODULE   "demux_slave"
 
#define LOG_VERBOSE
 
#define SCRATCH_SIZE   1024
 
#define CHECK_VPTS_INTERVAL   2*90000
 
#define NETWORK_PREBUFFER   90000
 
#define MAX_COMMAND_SIZE   20
 

Functions

static int demux_slave_next (demux_slave_t *this)
 
static int demux_slave_send_chunk (demux_plugin_t *this_gen)
 
static int demux_slave_get_status (demux_plugin_t *this_gen)
 
static void demux_slave_send_headers (demux_plugin_t *this_gen)
 
static int demux_slave_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing)
 
static void demux_slave_dispose (demux_plugin_t *this_gen)
 
static int demux_slave_get_stream_length (demux_plugin_t *this_gen)
 
static uint32_t demux_slave_get_capabilities (demux_plugin_t *this_gen)
 
static int demux_slave_get_optional_data (demux_plugin_t *this_gen, void *data, int data_type)
 
static demux_plugin_topen_plugin (demux_class_t *class_gen, xine_stream_t *stream, input_plugin_t *input)
 
static void * init_plugin (xine_t *xine, const void *data)
 

Variables

static const demuxer_info_t demux_info_slave
 
const plugin_info_t xine_plugin_info[] EXPORTED
 

Macro Definition Documentation

◆ CHECK_VPTS_INTERVAL

#define CHECK_VPTS_INTERVAL   2*90000

Referenced by demux_slave_next().

◆ LOG_MODULE

#define LOG_MODULE   "demux_slave"

◆ LOG_VERBOSE

#define LOG_VERBOSE

◆ MAX_COMMAND_SIZE

#define MAX_COMMAND_SIZE   20

Referenced by demux_slave_next().

◆ NETWORK_PREBUFFER

#define NETWORK_PREBUFFER   90000

Referenced by demux_slave_next().

◆ SCRATCH_SIZE

#define SCRATCH_SIZE   1024

Referenced by demux_slave_next().

Function Documentation

◆ demux_slave_dispose()

static void demux_slave_dispose ( demux_plugin_t * this_gen)
static

References NULL, xine_list_delete(), and xine_list_next_value().

Referenced by open_plugin().

◆ demux_slave_get_capabilities()

static uint32_t demux_slave_get_capabilities ( demux_plugin_t * this_gen)
static

References DEMUX_CAP_NOCAP.

Referenced by open_plugin().

◆ demux_slave_get_optional_data()

static int demux_slave_get_optional_data ( demux_plugin_t * this_gen,
void * data,
int data_type )
static

References DEMUX_OPTIONAL_UNSUPPORTED.

Referenced by open_plugin().

◆ demux_slave_get_status()

static int demux_slave_get_status ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_slave_get_stream_length()

static int demux_slave_get_stream_length ( demux_plugin_t * this_gen)
static

Referenced by open_plugin().

◆ demux_slave_next()

static int demux_slave_next ( demux_slave_t * this)
static

◆ demux_slave_seek()

static int demux_slave_seek ( demux_plugin_t * this_gen,
off_t start_pos,
int start_time,
int playing )
static

Referenced by open_plugin().

◆ demux_slave_send_chunk()

static int demux_slave_send_chunk ( demux_plugin_t * this_gen)
static

References demux_slave_next().

Referenced by open_plugin().

◆ demux_slave_send_headers()

static void demux_slave_send_headers ( demux_plugin_t * this_gen)
static

◆ init_plugin()

static void * init_plugin ( xine_t * xine,
const void * data )
static

◆ open_plugin()

static demux_plugin_t * open_plugin ( demux_class_t * class_gen,
xine_stream_t * stream,
input_plugin_t * input )
static

Variable Documentation

◆ demux_info_slave

const demuxer_info_t demux_info_slave
static
Initial value:
= {
.priority = 10,
}

◆ EXPORTED

const plugin_info_t xine_plugin_info [] EXPORTED
Initial value:
= {
{ PLUGIN_NONE, 0, NULL, 0, NULL, NULL }
}
static void * init_plugin(xine_t *xine, const void *data)
Definition demux_slave.c:394
static const demuxer_info_t demux_info_slave
Definition demux_slave.c:414
#define XINE_VERSION_CODE
Definition xine_internal.h:57
NULL
Definition xine_plugin.c:78
#define PLUGIN_DEMUX
Definition xine_plugin.h:31
#define PLUGIN_NONE
Definition xine_plugin.h:29