mozillasink.cpp File Reference
#include "mozilla-config.h"
#include <gst/gst.h>
#include <gst/base/gstbasesink.h>
#include <nsComponentManagerUtils.h>
#include <nsServiceManagerUtils.h>
#include <nsCOMPtr.h>
#include <nsIOutputStream.h>
#include <nsIProxyObjectManager.h>
#include "mozillaplugin.h"
Include dependency graph for mozillasink.cpp:

Go to the source code of this file.

Classes

struct  _GstMozillaSink
 
struct  _GstMozillaSinkClass
 

Macros

#define GST_CAT_DEFAULT   mozilla_sink_debug
 

Typedefs

typedef struct _GstMozillaSink GstMozillaSink
 
typedef struct _GstMozillaSinkClass GstMozillaSinkClass
 

Enumerations

enum  { PROP_0, PROP_STREAM }
 

Functions

 GST_DEBUG_CATEGORY_STATIC (mozilla_sink_debug)
 
static void gst_mozilla_sink_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
 
static void gst_mozilla_sink_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
 
static GstFlowReturn gst_mozilla_sink_render (GstBaseSink *bsink, GstBuffer *buf)
 
static gboolean gst_mozilla_sink_start (GstBaseSink *bsink)
 
static gboolean gst_mozilla_sink_stop (GstBaseSink *bsink)
 
static gboolean gst_mozilla_sink_event (GstBaseSink *bsink, GstEvent *event)
 
static void gst_mozilla_sink_close_stream (GstMozillaSink *sink)
 
static void gst_mozilla_sink_flush_stream (GstMozillaSink *sink)
 
 GST_BOILERPLATE (GstMozillaSink, gst_mozilla_sink, GstBaseSink, GST_TYPE_BASE_SINK)
 
static void gst_mozilla_sink_base_init (gpointer g_class)
 
static void gst_mozilla_sink_class_init (GstMozillaSinkClass *klass)
 
static void gst_mozilla_sink_init (GstMozillaSink *sink, GstMozillaSinkClass *g_class)
 

Variables

static const GstElementDetails gst_mozilla_sink_details
 
static GstStaticPadTemplate sink_template
 

Macro Definition Documentation

#define GST_CAT_DEFAULT   mozilla_sink_debug

Definition at line 56 of file mozillasink.cpp.

Typedef Documentation

Definition at line 35 of file mozillasink.cpp.

Definition at line 36 of file mozillasink.cpp.

Enumeration Type Documentation

anonymous enum
Enumerator
PROP_0 
PROP_STREAM 

Definition at line 70 of file mozillasink.cpp.

Function Documentation

GST_BOILERPLATE ( GstMozillaSink  ,
gst_mozilla_sink  ,
GstBaseSink  ,
GST_TYPE_BASE_SINK   
)
GST_DEBUG_CATEGORY_STATIC ( mozilla_sink_debug  )
static void gst_mozilla_sink_base_init ( gpointer  g_class)
static

Definition at line 94 of file mozillasink.cpp.

static void gst_mozilla_sink_class_init ( GstMozillaSinkClass klass)
static

Definition at line 105 of file mozillasink.cpp.

Here is the call graph for this function:

static void gst_mozilla_sink_close_stream ( GstMozillaSink sink)
static

Definition at line 293 of file mozillasink.cpp.

Here is the caller graph for this function:

static gboolean gst_mozilla_sink_event ( GstBaseSink *  bsink,
GstEvent *  event 
)
static

Definition at line 265 of file mozillasink.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static void gst_mozilla_sink_flush_stream ( GstMozillaSink sink)
static

Definition at line 305 of file mozillasink.cpp.

Here is the caller graph for this function:

static void gst_mozilla_sink_get_property ( GObject *  object,
guint  prop_id,
GValue *  value,
GParamSpec *  pspec 
)
static

Definition at line 190 of file mozillasink.cpp.

Here is the caller graph for this function:

static void gst_mozilla_sink_init ( GstMozillaSink sink,
GstMozillaSinkClass g_class 
)
static

Definition at line 132 of file mozillasink.cpp.

static GstFlowReturn gst_mozilla_sink_render ( GstBaseSink *  bsink,
GstBuffer *  buf 
)
static

Definition at line 210 of file mozillasink.cpp.

Here is the caller graph for this function:

static void gst_mozilla_sink_set_property ( GObject *  object,
guint  prop_id,
const GValue *  value,
GParamSpec *  pspec 
)
static

Definition at line 144 of file mozillasink.cpp.

Here is the caller graph for this function:

static gboolean gst_mozilla_sink_start ( GstBaseSink *  bsink)
static

Definition at line 242 of file mozillasink.cpp.

Here is the caller graph for this function:

static gboolean gst_mozilla_sink_stop ( GstBaseSink *  bsink)
static

Definition at line 255 of file mozillasink.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const GstElementDetails gst_mozilla_sink_details
static
Initial value:
=
GST_ELEMENT_DETAILS ((gchar *)"Mozilla nsIOutputStream sink",
(gchar *)"Sink",
(gchar *)"Write data to a hosting mozilla "
"application's output stream API",
(gchar *)"Pioneers of the Inevitable <songbird@songbirdnest.com")

Definition at line 58 of file mozillasink.cpp.

GstStaticPadTemplate sink_template
static
Initial value:
= GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS_ANY)

Definition at line 65 of file mozillasink.cpp.