Re-indent valve in gst style
This commit is contained in:
parent
06b1c78ade
commit
d1c9b30ada
@ -35,8 +35,7 @@ GST_DEBUG_CATEGORY (valve_debug);
|
|||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
static const GstElementDetails gst_valve_details =
|
static const GstElementDetails gst_valve_details =
|
||||||
GST_ELEMENT_DETAILS (
|
GST_ELEMENT_DETAILS ("Valve element",
|
||||||
"Valve element",
|
|
||||||
"Filter",
|
"Filter",
|
||||||
"This element drops all packets when drop is TRUE",
|
"This element drops all packets when drop is TRUE",
|
||||||
"Olivier Crete <olivier.crete@collabora.co.uk>");
|
"Olivier Crete <olivier.crete@collabora.co.uk>");
|
||||||
@ -82,8 +81,7 @@ static GstCaps *gst_valve_getcaps (GstPad *pad);
|
|||||||
static void
|
static void
|
||||||
_do_init (GType type)
|
_do_init (GType type)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT
|
GST_DEBUG_CATEGORY_INIT (valve_debug, "valve", 0, "Valve");
|
||||||
(valve_debug, "valve", 0, "Valve");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_BOILERPLATE_FULL (GstValve, gst_valve, GstElement,
|
GST_BOILERPLATE_FULL (GstValve, gst_valve, GstElement,
|
||||||
@ -191,8 +189,7 @@ gst_valve_chain (GstPad *pad, GstBuffer *buffer)
|
|||||||
GST_OBJECT_LOCK (GST_OBJECT (valve));
|
GST_OBJECT_LOCK (GST_OBJECT (valve));
|
||||||
drop = valve->drop;
|
drop = valve->drop;
|
||||||
|
|
||||||
if (!drop && valve->discont)
|
if (!drop && valve->discont) {
|
||||||
{
|
|
||||||
buffer = gst_buffer_make_metadata_writable (buffer);
|
buffer = gst_buffer_make_metadata_writable (buffer);
|
||||||
GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT);
|
GST_BUFFER_FLAG_SET (buffer, GST_BUFFER_FLAG_DISCONT);
|
||||||
valve->discont = FALSE;
|
valve->discont = FALSE;
|
||||||
@ -280,10 +277,10 @@ GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"fsvalve",
|
"fsvalve",
|
||||||
"Valve",
|
"Valve",
|
||||||
gst_valve_plugin_init, VERSION, "LGPL", "Farsight", "http://farsight.sf.net")
|
gst_valve_plugin_init, VERSION, "LGPL", "Farsight",
|
||||||
|
"http://farsight.sf.net")
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *gst_valve_getcaps (GstPad * pad)
|
||||||
gst_valve_getcaps (GstPad *pad)
|
|
||||||
{
|
{
|
||||||
GstValve *valve = GST_VALVE (gst_pad_get_parent (pad));
|
GstValve *valve = GST_VALVE (gst_pad_get_parent (pad));
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
/* #define's don't like whitespacey bits */
|
/* #define's don't like whitespacey bits */
|
||||||
#define GST_TYPE_VALVE \
|
#define GST_TYPE_VALVE \
|
||||||
(gst_valve_get_type())
|
(gst_valve_get_type())
|
||||||
@ -42,7 +41,6 @@ G_BEGIN_DECLS
|
|||||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VALVE))
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VALVE))
|
||||||
#define GST_IS_VALVE_CLASS(obj) \
|
#define GST_IS_VALVE_CLASS(obj) \
|
||||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VALVE))
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VALVE))
|
||||||
|
|
||||||
typedef struct _GstValve GstValve;
|
typedef struct _GstValve GstValve;
|
||||||
typedef struct _GstValveClass GstValveClass;
|
typedef struct _GstValveClass GstValveClass;
|
||||||
typedef struct _GstValvePrivate GstValvePrivate;
|
typedef struct _GstValvePrivate GstValvePrivate;
|
||||||
@ -75,5 +73,4 @@ struct _GstValveClass
|
|||||||
GType gst_valve_get_type (void);
|
GType gst_valve_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_VALVE_H__ */
|
#endif /* __GST_VALVE_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user