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>
+
* libs/gst/base/gstbasesink.c: (gst_base_sink_event):
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_base_init),
(gst_collect_pads_is_collected), (gst_collect_pads_event):
2006-04-28 Wim Taymans <wim@fluendo.com>
- Patch by: Topi Paavola
-
* gst/gstutils.c: (push_and_ref):
Added some more docs.
Fix refcount issue whith gst_element_found_tags() helper
GST_DEBUG_CATEGORY_STATIC (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",
"Simple container object",
"Erik Walthinsen <omega@cse.ogi.edu>," "Wim Taymans <wim@fluendo.com>");
/*
* 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
* implement their own seek handler, but this will work for
* pretty much all cases in practice.
GST_DEBUG_CATEGORY_STATIC (pipeline_debug);
#define GST_CAT_DEFAULT pipeline_debug
-static GstElementDetails gst_pipeline_details =
+static const GstElementDetails gst_pipeline_details =
GST_ELEMENT_DETAILS ("Pipeline object",
"Generic/Bin",
"Complete pipeline object",
#include <gst/base/gstbasetransform.h>
-static GstElementDetails gst_capsfilter_details =
+static const GstElementDetails gst_capsfilter_details =
GST_ELEMENT_DETAILS ("CapsFilter",
"Generic",
"Pass data without modification, limiting formats",
GST_DEBUG_CATEGORY_STATIC (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",
"Sink",
"Black hole for data",
GST_DEBUG_CATEGORY_STATIC (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",
"Source",
"Push empty (no data) buffers around",
GST_DEBUG_CATEGORY_STATIC (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",
"Sink/File",
"Write data to a file descriptor",
GST_DEBUG_CATEGORY_STATIC (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",
"Source/File",
"Synchronous read from a file",
GST_DEBUG_CATEGORY_STATIC (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",
"Sink/File",
"Write stream to a file",
GST_DEBUG_CATEGORY_STATIC (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",
"Source/File",
"Read from arbitrary point in a file",
GST_DEBUG_CATEGORY_STATIC (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",
"Pass data without modification",
"Erik Walthinsen <omega@cse.ogi.edu>");
queue->max_size.time, \
queue->queue->length)
-static GstElementDetails gst_queue_details = GST_ELEMENT_DETAILS ("Queue",
+static const GstElementDetails gst_queue_details = GST_ELEMENT_DETAILS ("Queue",
"Generic",
"Simple data queue",
"Erik Walthinsen <omega@cse.ogi.edu>");
GST_DEBUG_CATEGORY_STATIC (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",
"Generic",
"1-to-N pipe fitting",
GST_DEBUG_CATEGORY_STATIC (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",
"Generic",
"Finds the media type of a stream",
if (typefind->store) {
caps = gst_type_find_helper_for_buffer (GST_OBJECT (typefind),
typefind->store, &prob);
- }
- if (caps && prob >= typefind->min_probability) {
- g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],
- 0, prob, caps);
- } else {
- GST_ELEMENT_ERROR (typefind, STREAM, TYPE_NOT_FOUND,
- (NULL), (NULL));
+ if (caps && prob >= typefind->min_probability) {
+ g_signal_emit (typefind, gst_type_find_element_signals[HAVE_TYPE],
+ 0, prob, caps);
+ } else {
+ GST_ELEMENT_ERROR (typefind, STREAM, TYPE_NOT_FOUND,
+ (NULL), (NULL));
+ }
+ gst_caps_replace (&caps, NULL);
}
- gst_caps_replace (&caps, NULL);
+
stop_typefinding (typefind);
res = gst_pad_event_default (pad, event);
break;