GstThread

Name

GstThread -- A bin that will become a thread

Synopsis


#include <gst/gst.h>


enum        GstThreadState;
struct      GstThread;
GstElement* gst_thread_new                  (guchar *name);

Object Hierarchy


  GtkObject
   +----GstObject
         +----GstElement
               +----GstBin
                     +----GstThread

Args


  "create_thread"        gboolean             : Read / Write

Description

A bin that will become a thread if possible when the pipeline is started up. Can contain any set of GstObjects except another GstThread. All starting points and/or clocked events must be registered with this object, to be dealt with in the separate thread.

Details

enum GstThreadState

typedef enum {
  GST_THREAD_CREATE		= 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:

GST_THREAD_CREATEThe thread is being created.
GST_THREAD_STATE_SPINNINGThe thread is runnning
GST_THREAD_STATE_REAPINGThe thread is ending.
GST_THREAD_FLAG_LASTsubclass use this to start their enumeration


struct GstThread

struct GstThread;


gst_thread_new ()

GstElement* gst_thread_new                  (guchar *name);

Create a new thread with the given name.

name : the name of the thread
Returns : The new thread

Args

"create_thread" (gboolean : Read / Write)

TRUE if the thread should be created.