make GstElementDetails const

Original commit message from CVS:
* gst/gstbin.c:
* gst/gstpipeline.c:
* plugins/elements/gstcapsfilter.c:
* plugins/elements/gstfakesink.c:
* plugins/elements/gstfakesrc.c:
* plugins/elements/gstfdsink.c:
* plugins/elements/gstfdsrc.c:
* plugins/elements/gstfilesink.c:
* plugins/elements/gstfilesrc.c:
* plugins/elements/gstidentity.c:
* plugins/elements/gstqueue.c:
* plugins/elements/gsttee.c:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
make GstElementDetails const
This commit is contained in:
Stefan Kost 2006-04-28 18:55:17 +00:00
parent 4852eda85a
commit e90fcdbc80
14 changed files with 45 additions and 24 deletions

View file

@ -1,3 +1,21 @@
2006-04-28 Stefan Kost <ensonic@users.sf.net>
* gst/gstbin.c:
* gst/gstpipeline.c:
* plugins/elements/gstcapsfilter.c:
* plugins/elements/gstfakesink.c:
* plugins/elements/gstfakesrc.c:
* plugins/elements/gstfdsink.c:
* plugins/elements/gstfdsrc.c:
* plugins/elements/gstfilesink.c:
* plugins/elements/gstfilesrc.c:
* plugins/elements/gstidentity.c:
* plugins/elements/gstqueue.c:
* plugins/elements/gsttee.c:
* plugins/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
make GstElementDetails const
2006-04-28 Stefan Kost <ensonic@users.sf.net> 2006-04-28 Stefan Kost <ensonic@users.sf.net>
* libs/gst/base/gstbasesink.c: (gst_base_sink_event): * libs/gst/base/gstbasesink.c: (gst_base_sink_event):
@ -21,8 +39,6 @@
2006-04-28 Wim Taymans <wim@fluendo.com> 2006-04-28 Wim Taymans <wim@fluendo.com>
Patch by: Topi Paavola
* gst/gstutils.c: (push_and_ref): * gst/gstutils.c: (push_and_ref):
Added some more docs. Added some more docs.
Fix refcount issue whith gst_element_found_tags() helper Fix refcount issue whith gst_element_found_tags() helper

View file

@ -167,7 +167,8 @@
GST_DEBUG_CATEGORY_STATIC (bin_debug); GST_DEBUG_CATEGORY_STATIC (bin_debug);
#define GST_CAT_DEFAULT bin_debug #define GST_CAT_DEFAULT bin_debug
static GstElementDetails gst_bin_details = GST_ELEMENT_DETAILS ("Generic bin", static const GstElementDetails gst_bin_details =
GST_ELEMENT_DETAILS ("Generic bin",
"Generic/Bin", "Generic/Bin",
"Simple container object", "Simple container object",
"Erik Walthinsen <omega@cse.ogi.edu>," "Wim Taymans <wim@fluendo.com>"); "Erik Walthinsen <omega@cse.ogi.edu>," "Wim Taymans <wim@fluendo.com>");
@ -1895,7 +1896,9 @@ done:
/* /*
* This function is a utility event handler for seek events. * This function is a utility event handler for seek events.
* It will send the event to all sinks. * It will send the event to all sinks or sources depending on the
* event-direction.
*
* Applications are free to override this behaviour and * Applications are free to override this behaviour and
* implement their own seek handler, but this will work for * implement their own seek handler, but this will work for
* pretty much all cases in practice. * pretty much all cases in practice.

View file

@ -90,7 +90,7 @@
GST_DEBUG_CATEGORY_STATIC (pipeline_debug); GST_DEBUG_CATEGORY_STATIC (pipeline_debug);
#define GST_CAT_DEFAULT pipeline_debug #define GST_CAT_DEFAULT pipeline_debug
static GstElementDetails gst_pipeline_details = static const GstElementDetails gst_pipeline_details =
GST_ELEMENT_DETAILS ("Pipeline object", GST_ELEMENT_DETAILS ("Pipeline object",
"Generic/Bin", "Generic/Bin",
"Complete pipeline object", "Complete pipeline object",

View file

@ -29,7 +29,7 @@
#include <gst/base/gstbasetransform.h> #include <gst/base/gstbasetransform.h>
static GstElementDetails gst_capsfilter_details = static const GstElementDetails gst_capsfilter_details =
GST_ELEMENT_DETAILS ("CapsFilter", GST_ELEMENT_DETAILS ("CapsFilter",
"Generic", "Generic",
"Pass data without modification, limiting formats", "Pass data without modification, limiting formats",

View file

@ -42,7 +42,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_DEBUG_CATEGORY_STATIC (gst_fake_sink_debug); GST_DEBUG_CATEGORY_STATIC (gst_fake_sink_debug);
#define GST_CAT_DEFAULT gst_fake_sink_debug #define GST_CAT_DEFAULT gst_fake_sink_debug
static GstElementDetails gst_fake_sink_details = static const GstElementDetails gst_fake_sink_details =
GST_ELEMENT_DETAILS ("Fake Sink", GST_ELEMENT_DETAILS ("Fake Sink",
"Sink", "Sink",
"Black hole for data", "Black hole for data",

View file

@ -65,7 +65,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_DEBUG_CATEGORY_STATIC (gst_fake_src_debug); GST_DEBUG_CATEGORY_STATIC (gst_fake_src_debug);
#define GST_CAT_DEFAULT gst_fake_src_debug #define GST_CAT_DEFAULT gst_fake_src_debug
static GstElementDetails gst_fake_src_details = static const GstElementDetails gst_fake_src_details =
GST_ELEMENT_DETAILS ("Fake Source", GST_ELEMENT_DETAILS ("Fake Source",
"Source", "Source",
"Push empty (no data) buffers around", "Push empty (no data) buffers around",

View file

@ -88,7 +88,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_DEBUG_CATEGORY_STATIC (gst_fd_sink__debug); GST_DEBUG_CATEGORY_STATIC (gst_fd_sink__debug);
#define GST_CAT_DEFAULT gst_fd_sink__debug #define GST_CAT_DEFAULT gst_fd_sink__debug
static GstElementDetails gst_fd_sink__details = static const GstElementDetails gst_fd_sink__details =
GST_ELEMENT_DETAILS ("Filedescriptor Sink", GST_ELEMENT_DETAILS ("Filedescriptor Sink",
"Sink/File", "Sink/File",
"Write data to a file descriptor", "Write data to a file descriptor",

View file

@ -78,7 +78,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_DEBUG_CATEGORY_STATIC (gst_fd_src_debug); GST_DEBUG_CATEGORY_STATIC (gst_fd_src_debug);
#define GST_CAT_DEFAULT gst_fd_src_debug #define GST_CAT_DEFAULT gst_fd_src_debug
static GstElementDetails gst_fd_src_details = static const GstElementDetails gst_fd_src_details =
GST_ELEMENT_DETAILS ("Disk Source", GST_ELEMENT_DETAILS ("Disk Source",
"Source/File", "Source/File",
"Synchronous read from a file", "Synchronous read from a file",

View file

@ -52,7 +52,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_DEBUG_CATEGORY_STATIC (gst_file_sink_debug); GST_DEBUG_CATEGORY_STATIC (gst_file_sink_debug);
#define GST_CAT_DEFAULT gst_file_sink_debug #define GST_CAT_DEFAULT gst_file_sink_debug
static GstElementDetails gst_file_sink_details = static const GstElementDetails gst_file_sink_details =
GST_ELEMENT_DETAILS ("File Sink", GST_ELEMENT_DETAILS ("File Sink",
"Sink/File", "Sink/File",
"Write stream to a file", "Write stream to a file",

View file

@ -116,7 +116,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_DEBUG_CATEGORY_STATIC (gst_file_src_debug); GST_DEBUG_CATEGORY_STATIC (gst_file_src_debug);
#define GST_CAT_DEFAULT gst_file_src_debug #define GST_CAT_DEFAULT gst_file_src_debug
static GstElementDetails gst_file_src_details = static const GstElementDetails gst_file_src_details =
GST_ELEMENT_DETAILS ("File Source", GST_ELEMENT_DETAILS ("File Source",
"Source/File", "Source/File",
"Read from arbitrary point in a file", "Read from arbitrary point in a file",

View file

@ -45,7 +45,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
GST_DEBUG_CATEGORY_STATIC (gst_identity_debug); GST_DEBUG_CATEGORY_STATIC (gst_identity_debug);
#define GST_CAT_DEFAULT gst_identity_debug #define GST_CAT_DEFAULT gst_identity_debug
static GstElementDetails gst_identity_details = GST_ELEMENT_DETAILS ("Identity", static const GstElementDetails gst_identity_details =
GST_ELEMENT_DETAILS ("Identity",
"Generic", "Generic",
"Pass data without modification", "Pass data without modification",
"Erik Walthinsen <omega@cse.ogi.edu>"); "Erik Walthinsen <omega@cse.ogi.edu>");

View file

@ -76,7 +76,7 @@ GST_DEBUG_CATEGORY_STATIC (queue_dataflow);
queue->max_size.time, \ queue->max_size.time, \
queue->queue->length) queue->queue->length)
static GstElementDetails gst_queue_details = GST_ELEMENT_DETAILS ("Queue", static const GstElementDetails gst_queue_details = GST_ELEMENT_DETAILS ("Queue",
"Generic", "Generic",
"Simple data queue", "Simple data queue",
"Erik Walthinsen <omega@cse.ogi.edu>"); "Erik Walthinsen <omega@cse.ogi.edu>");

View file

@ -45,7 +45,7 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
GST_DEBUG_CATEGORY_STATIC (gst_tee_debug); GST_DEBUG_CATEGORY_STATIC (gst_tee_debug);
#define GST_CAT_DEFAULT gst_tee_debug #define GST_CAT_DEFAULT gst_tee_debug
static GstElementDetails gst_tee_details = static const GstElementDetails gst_tee_details =
GST_ELEMENT_DETAILS ("Tee pipe fitting", GST_ELEMENT_DETAILS ("Tee pipe fitting",
"Generic", "Generic",
"1-to-N pipe fitting", "1-to-N pipe fitting",

View file

@ -63,7 +63,7 @@
GST_DEBUG_CATEGORY_STATIC (gst_type_find_element_debug); GST_DEBUG_CATEGORY_STATIC (gst_type_find_element_debug);
#define GST_CAT_DEFAULT gst_type_find_element_debug #define GST_CAT_DEFAULT gst_type_find_element_debug
static GstElementDetails gst_type_find_element_details = static const GstElementDetails gst_type_find_element_details =
GST_ELEMENT_DETAILS ("TypeFind", GST_ELEMENT_DETAILS ("TypeFind",
"Generic", "Generic",
"Finds the media type of a stream", "Finds the media type of a stream",
@ -476,7 +476,6 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event)
if (typefind->store) { if (typefind->store) {
caps = gst_type_find_helper_for_buffer (GST_OBJECT (typefind), caps = gst_type_find_helper_for_buffer (GST_OBJECT (typefind),
typefind->store, &prob); typefind->store, &prob);
}
if (caps && prob >= typefind->min_probability) { if (caps && prob >= typefind->min_probability) {
g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE], g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],
@ -486,6 +485,8 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event)
(NULL), (NULL)); (NULL), (NULL));
} }
gst_caps_replace (&caps, NULL); gst_caps_replace (&caps, NULL);
}
stop_typefinding (typefind); stop_typefinding (typefind);
res = gst_pad_event_default (pad, event); res = gst_pad_event_default (pad, event);
break; break;