GstThread

Name

GstThread -- A bin that will become a thread

Synopsis


#include <gst/gst.h>


enum        GstThreadState;
struct      GstThread;
GstElement* gst_thread_new                  (const gchar *name);

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBin
                     +----GstThread

Description

A bin that will become a thread if possible when the pipeline is started up. It can contain any set of GstObjects.

A Thread can act as a toplevel bin as it has its own scheduler.

Details

enum GstThreadState

typedef enum {
  GST_THREAD_STATE_STARTED	= GST_BIN_FLAG_LAST,
  GST_THREAD_STATE_SPINNING,
  GST_THREAD_STATE_REAPING,

  /* padding */
  GST_THREAD_FLAG_LAST 		= GST_BIN_FLAG_LAST + 4
} GstThreadState;

Thread flags:


struct GstThread

struct GstThread;


gst_thread_new ()

GstElement* gst_thread_new                  (const gchar *name);

Create a new thread with the given name.

See Also

GstBin, GstPipeline