Source

Source — Source interface

Functions

Types and Values

Description

Source interface

Functions

flu_source_ref ()

FluSource *
flu_source_ref (FluSource *thiz);

Add a reference to an FluSource

Parameters

thiz

The source to be referenced

 

Returns

The same object, for programming convenience.

[transfer full]


flu_source_unref ()

void
flu_source_unref (FluSource *thiz);

Remove a reference from an FluSource

Parameters

thiz

The source to be unreferenced

 

flu_source_type_get ()

FluSourceType
flu_source_type_get (FluSource *thiz);

Gets the type of a FluSource

Parameters

thiz

The stream to get the type from

 

Returns

The type of the stream


flu_source_buffering_policy_set ()

void
flu_source_buffering_policy_set (FluSource *thiz,
                                 FluBufferingPolicy policy,
                                 gint size,
                                 gint64 time);

Sets the buffering policy on a source

In case the policy used is FLU_BUFFERING_POLICY_NONE the size and time parameters are ignored

Parameters

thiz

The FluSource to set the buffering policy

 

policy

The FluBufferingPolicy to set

 

size

The minimum size in bytes for the buffering queue

 

time

The minimum time in nanoseconds for the buffering queue

 

flu_source_buffering_policy_get ()

FluBufferingPolicy
flu_source_buffering_policy_get (FluSource *thiz,
                                 gint *size,
                                 gint64 *time);

Gets the buffering policy from a source

Parameters

thiz

The FluSource to get the buffering policy from

 

size

The minimum size in bytes of the buffering queue.

[out]

time

The minimum time in nanoseconds of the buffering queue.

[out]

Returns

The buffering policy


flu_source_list_free ()

void
flu_source_list_free (GList *l);

Frees a list of streams

Parameters

l

The list of streams to free.

[element-type FluSource]

flu_source_get_name ()

const gchar *
flu_source_get_name (FluSource *thiz);

Parameters

thiz

The FluSource to get name from

 

Returns

Source name

Types and Values

enum FluSourceType

Enum values used to describe an Flusource type

Members

FLU_SOURCE_TYPE_UNKNOWN

Unknown type of source

 

FLU_SOURCE_TYPE_URI

URI based source

 

FLU_SOURCE_TYPE_DEVICE

FluDevice based source

 

FLU_SOURCE_TYPE_CUSTOM

Application based custom source

 

enum FluFormat

Enum values used to describe different format in a FluPlayerEventSeekSource event.

Members

FLU_FORMAT_UNDEFINED

The format is type of undefined.

 

FLU_FORMAT_BYTES

The format is byte-based.

 

FLU_FORMAT_TIME

The format is time-based.

 

FluSource

typedef struct {
  GstObject base;
  GstElement *element;
  GstElement *real_src;
  gchar *name;
  gboolean setup;
  /* type information */
  FluSourceType type;
  /* buffering information */
  FluBufferingPolicy buffering_policy;
  gint buffering_size;
  gint64 buffering_time;
  /* the engine we are using */
  FluEngine *engine;
  /* the streams for this source */
  GList *streams[FLU_STREAM_TYPES];
  /* Active User Operation Prohibitions (UOP) */
  FluUserOperation uop;
} FluSource;