2005-03-21 17:34:02 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2004 Wim Taymans <wim@fluendo.com>
|
|
|
|
*
|
|
|
|
* gstmessage.h: Header for GstMessage subsystem
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2005-03-21 17:34:02 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_MESSAGE_H__
|
|
|
|
#define __GST_MESSAGE_H__
|
|
|
|
|
2005-08-25 10:35:46 +00:00
|
|
|
G_BEGIN_DECLS
|
2005-03-21 17:34:02 +00:00
|
|
|
|
2005-07-18 12:49:53 +00:00
|
|
|
typedef struct _GstMessage GstMessage;
|
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
/**
|
|
|
|
* GstMessageType:
|
|
|
|
* @GST_MESSAGE_UNKNOWN: an undefined message
|
2007-05-21 12:05:14 +00:00
|
|
|
* @GST_MESSAGE_EOS: end-of-stream reached in a pipeline. The application will
|
|
|
|
* only receive this message in the PLAYING state and every time it sets a
|
|
|
|
* pipeline to PLAYING that is in the EOS state. The application can perform a
|
2009-10-07 08:37:39 +00:00
|
|
|
* flushing seek in the pipeline, which will undo the EOS state again.
|
2013-12-07 14:38:19 +00:00
|
|
|
* @GST_MESSAGE_ERROR: an error occurred. When the application receives an error
|
2007-05-21 12:05:14 +00:00
|
|
|
* message it should stop playback of the pipeline and not assume that more
|
|
|
|
* data will be played.
|
2013-12-07 14:38:19 +00:00
|
|
|
* @GST_MESSAGE_WARNING: a warning occurred.
|
|
|
|
* @GST_MESSAGE_INFO: an info message occurred
|
2005-03-21 17:34:02 +00:00
|
|
|
* @GST_MESSAGE_TAG: a tag was found.
|
2007-05-21 12:05:14 +00:00
|
|
|
* @GST_MESSAGE_BUFFERING: the pipeline is buffering. When the application
|
|
|
|
* receives a buffering message in the PLAYING state for a non-live pipeline it
|
|
|
|
* must PAUSE the pipeline until the buffering completes, when the percentage
|
|
|
|
* field in the message is 100%. For live pipelines, no action must be
|
2007-08-16 10:07:48 +00:00
|
|
|
* performed and the buffering percentage can be used to inform the user about
|
2007-05-21 12:05:14 +00:00
|
|
|
* the progress.
|
2005-03-21 17:34:02 +00:00
|
|
|
* @GST_MESSAGE_STATE_CHANGED: a state change happened
|
2007-05-21 12:05:14 +00:00
|
|
|
* @GST_MESSAGE_STATE_DIRTY: an element changed state in a streaming thread.
|
|
|
|
* This message is deprecated.
|
2010-01-15 17:36:07 +00:00
|
|
|
* @GST_MESSAGE_STEP_DONE: a stepping operation finished.
|
2005-10-11 15:05:55 +00:00
|
|
|
* @GST_MESSAGE_CLOCK_PROVIDE: an element notifies its capability of providing
|
2007-08-16 10:07:48 +00:00
|
|
|
* a clock. This message is used internally and
|
|
|
|
* never forwarded to the application.
|
gst/gstmessage.*: Clean up.
Original commit message from CVS:
* gst/gstmessage.c: (gst_message_new_custom),
(gst_message_new_eos), (gst_message_new_error),
(gst_message_new_warning), (gst_message_new_tag),
(gst_message_new_state_changed), (gst_message_new_clock_provide),
(gst_message_new_new_clock), (gst_message_new_segment_start),
(gst_message_new_segment_done), (gst_message_parse_state_changed),
(gst_message_parse_clock_provide), (gst_message_parse_new_clock):
* gst/gstmessage.h:
Clean up.
Added clock related messages.
* gst/gstpipeline.c: (gst_pipeline_change_state):
Post message when the clock changed.
* tools/gst-launch.c: (event_loop):
Print new clock.
2005-10-08 12:36:36 +00:00
|
|
|
* @GST_MESSAGE_CLOCK_LOST: The current clock as selected by the pipeline became
|
2005-10-09 17:53:33 +00:00
|
|
|
* unusable. The pipeline will select a new clock on
|
2010-01-15 17:36:07 +00:00
|
|
|
* the next PLAYING state change. The application
|
|
|
|
* should set the pipeline to PAUSED and back to
|
|
|
|
* PLAYING when this message is received.
|
2007-05-21 12:05:14 +00:00
|
|
|
* @GST_MESSAGE_NEW_CLOCK: a new clock was selected in the pipeline.
|
2008-10-06 15:31:49 +00:00
|
|
|
* @GST_MESSAGE_STRUCTURE_CHANGE: the structure of the pipeline changed. This
|
|
|
|
* message is used internally and never forwarded to the application.
|
2005-06-24 18:16:14 +00:00
|
|
|
* @GST_MESSAGE_STREAM_STATUS: status about a stream, emitted when it starts,
|
2009-09-14 11:07:55 +00:00
|
|
|
* stops, errors, etc..
|
2005-03-21 17:34:02 +00:00
|
|
|
* @GST_MESSAGE_APPLICATION: message posted by the application, possibly
|
|
|
|
* via an application-specific element.
|
2005-10-07 16:13:51 +00:00
|
|
|
* @GST_MESSAGE_ELEMENT: element-specific message, see the specific element's
|
|
|
|
* documentation
|
2007-08-16 10:07:48 +00:00
|
|
|
* @GST_MESSAGE_SEGMENT_START: pipeline started playback of a segment. This
|
|
|
|
* message is used internally and never forwarded to the application.
|
|
|
|
* @GST_MESSAGE_SEGMENT_DONE: pipeline completed playback of a segment. This
|
|
|
|
* message is forwarded to the application after all elements that posted
|
|
|
|
* @GST_MESSAGE_SEGMENT_START posted a GST_MESSAGE_SEGMENT_DONE message.
|
2012-09-02 00:17:44 +00:00
|
|
|
* @GST_MESSAGE_DURATION_CHANGED: The duration of a pipeline changed. The
|
|
|
|
* application can get the new duration with a duration query.
|
2011-05-28 06:51:45 +00:00
|
|
|
* @GST_MESSAGE_ASYNC_START: Posted by elements when they start an ASYNC
|
|
|
|
* #GstStateChange. This message is not forwarded to the application but is used
|
2012-07-10 09:46:41 +00:00
|
|
|
* internally.
|
2011-05-28 06:51:45 +00:00
|
|
|
* @GST_MESSAGE_ASYNC_DONE: Posted by elements when they complete an ASYNC
|
|
|
|
* #GstStateChange. The application will only receive this message from the toplevel
|
2012-07-10 09:46:41 +00:00
|
|
|
* pipeline.
|
2007-02-02 11:48:48 +00:00
|
|
|
* @GST_MESSAGE_LATENCY: Posted by elements when their latency changes. The
|
2012-07-10 09:46:41 +00:00
|
|
|
* application should recalculate and distribute a new latency.
|
2009-02-18 14:31:55 +00:00
|
|
|
* @GST_MESSAGE_REQUEST_STATE: Posted by elements when they want the pipeline to
|
|
|
|
* change state. This message is a suggestion to the application which can
|
2012-07-10 09:46:41 +00:00
|
|
|
* decide to perform the state change on (part of) the pipeline.
|
|
|
|
* @GST_MESSAGE_STEP_START: A stepping operation was started.
|
2010-03-17 18:16:42 +00:00
|
|
|
* @GST_MESSAGE_QOS: A buffer was dropped or an element changed its processing
|
2012-07-10 09:46:41 +00:00
|
|
|
* strategy for Quality of Service reasons.
|
|
|
|
* @GST_MESSAGE_PROGRESS: A progress message.
|
2012-03-14 16:41:48 +00:00
|
|
|
* @GST_MESSAGE_TOC: A new table of contents (TOC) was found or previously found TOC
|
2012-08-11 21:19:32 +00:00
|
|
|
* was updated.
|
|
|
|
* @GST_MESSAGE_RESET_TIME: Message to request resetting the pipeline's
|
|
|
|
* running time from the pipeline. This is an internal message which
|
|
|
|
* applications will likely never receive.
|
|
|
|
* @GST_MESSAGE_STREAM_START: Message indicating start of a new stream. Useful
|
|
|
|
* e.g. when using playbin in gapless playback mode, to get notified when
|
|
|
|
* the next title actually starts playing (which will be some time after
|
|
|
|
* the URI for the next title has been set).
|
2013-07-18 12:39:42 +00:00
|
|
|
* @GST_MESSAGE_NEED_CONTEXT: Message indicating that an element wants a specific context (Since 1.2)
|
|
|
|
* @GST_MESSAGE_HAVE_CONTEXT: Message indicating that an element created a context (Since 1.2)
|
2014-03-16 14:08:00 +00:00
|
|
|
* @GST_MESSAGE_EXTENDED: Message is an extended message type (see below).
|
|
|
|
* These extended message IDs can't be used directly with mask-based API
|
|
|
|
* like gst_bus_poll() or gst_bus_timed_pop_filtered(), but you can still
|
|
|
|
* filter for GST_MESSAGE_EXTENDED and then check the result for the
|
|
|
|
* specific type. (Since 1.4)
|
|
|
|
* @GST_MESSAGE_DEVICE_ADDED: Message indicating a #GstDevice was added to
|
|
|
|
* a #GstDeviceMonitor (Since 1.4)
|
|
|
|
* @GST_MESSAGE_DEVICE_REMOVED: Message indicating a #GstDevice was removed
|
|
|
|
* from a #GstDeviceMonitor (Since 1.4)
|
2005-03-21 17:34:02 +00:00
|
|
|
* @GST_MESSAGE_ANY: mask for all of the above messages.
|
2005-10-21 11:36:32 +00:00
|
|
|
*
|
2014-03-16 14:08:00 +00:00
|
|
|
* The different message types that are available.
|
2005-03-21 17:34:02 +00:00
|
|
|
*/
|
2009-10-07 08:37:39 +00:00
|
|
|
/* NOTE: keep in sync with quark registration in gstmessage.c
|
2006-07-06 16:17:20 +00:00
|
|
|
* NOTE: keep GST_MESSAGE_ANY a valid gint to avoid compiler warnings.
|
2009-10-07 08:37:39 +00:00
|
|
|
*/
|
2013-08-14 19:56:11 +00:00
|
|
|
/* FIXME: 2.0: Make it NOT flags, just a regular 1,2,3,4.. enumeration */
|
2005-08-25 10:35:46 +00:00
|
|
|
typedef enum
|
2005-03-21 17:34:02 +00:00
|
|
|
{
|
|
|
|
GST_MESSAGE_UNKNOWN = 0,
|
|
|
|
GST_MESSAGE_EOS = (1 << 0),
|
|
|
|
GST_MESSAGE_ERROR = (1 << 1),
|
|
|
|
GST_MESSAGE_WARNING = (1 << 2),
|
|
|
|
GST_MESSAGE_INFO = (1 << 3),
|
|
|
|
GST_MESSAGE_TAG = (1 << 4),
|
|
|
|
GST_MESSAGE_BUFFERING = (1 << 5),
|
|
|
|
GST_MESSAGE_STATE_CHANGED = (1 << 6),
|
Seriously, this is better than a previous commit as we only need to notify the fact that an element changed state in ...
Original commit message from CVS:
* check/gst/gstbin.c: (GST_START_TEST):
* check/gst/gstmessage.c: (GST_START_TEST):
* check/gst/gstpipeline.c: (GST_START_TEST), (message_received):
* gst/gstbin.c: (gst_bin_class_init), (gst_bin_recalc_func),
(bin_bus_handler):
* gst/gstelement.c: (gst_element_abort_state),
(gst_element_commit_state), (gst_element_lost_state):
* gst/gstmessage.c: (gst_message_new_state_changed),
(gst_message_new_state_dirty), (gst_message_new_segment_start),
(gst_message_new_segment_done), (gst_message_new_duration),
(gst_message_parse_state_changed),
(gst_message_parse_segment_start),
(gst_message_parse_segment_done), (gst_message_parse_duration):
* gst/gstmessage.h:
* tools/gst-launch.c: (event_loop):
Seriously, this is better than a previous commit as we only need
to notify the fact that an element changed state in a streaming
thread, marking the state of the parents dirty, hence the
STATE_DIRTY message instead of abusing a boolean in a STATE_CHANGE
message.
2005-10-18 16:25:38 +00:00
|
|
|
GST_MESSAGE_STATE_DIRTY = (1 << 7),
|
|
|
|
GST_MESSAGE_STEP_DONE = (1 << 8),
|
|
|
|
GST_MESSAGE_CLOCK_PROVIDE = (1 << 9),
|
|
|
|
GST_MESSAGE_CLOCK_LOST = (1 << 10),
|
|
|
|
GST_MESSAGE_NEW_CLOCK = (1 << 11),
|
|
|
|
GST_MESSAGE_STRUCTURE_CHANGE = (1 << 12),
|
|
|
|
GST_MESSAGE_STREAM_STATUS = (1 << 13),
|
|
|
|
GST_MESSAGE_APPLICATION = (1 << 14),
|
|
|
|
GST_MESSAGE_ELEMENT = (1 << 15),
|
|
|
|
GST_MESSAGE_SEGMENT_START = (1 << 16),
|
|
|
|
GST_MESSAGE_SEGMENT_DONE = (1 << 17),
|
2012-09-02 00:17:44 +00:00
|
|
|
GST_MESSAGE_DURATION_CHANGED = (1 << 18),
|
2007-02-21 12:01:41 +00:00
|
|
|
GST_MESSAGE_LATENCY = (1 << 19),
|
2007-03-19 09:55:02 +00:00
|
|
|
GST_MESSAGE_ASYNC_START = (1 << 20),
|
|
|
|
GST_MESSAGE_ASYNC_DONE = (1 << 21),
|
2009-02-18 14:31:55 +00:00
|
|
|
GST_MESSAGE_REQUEST_STATE = (1 << 22),
|
2009-06-10 13:48:35 +00:00
|
|
|
GST_MESSAGE_STEP_START = (1 << 23),
|
2010-03-17 18:16:42 +00:00
|
|
|
GST_MESSAGE_QOS = (1 << 24),
|
2011-01-05 12:41:08 +00:00
|
|
|
GST_MESSAGE_PROGRESS = (1 << 25),
|
2012-03-14 16:41:48 +00:00
|
|
|
GST_MESSAGE_TOC = (1 << 26),
|
2012-06-13 08:16:27 +00:00
|
|
|
GST_MESSAGE_RESET_TIME = (1 << 27),
|
2012-07-09 18:08:15 +00:00
|
|
|
GST_MESSAGE_STREAM_START = (1 << 28),
|
2013-03-28 14:35:13 +00:00
|
|
|
GST_MESSAGE_NEED_CONTEXT = (1 << 29),
|
|
|
|
GST_MESSAGE_HAVE_CONTEXT = (1 << 30),
|
2013-08-14 19:56:11 +00:00
|
|
|
GST_MESSAGE_EXTENDED = (1 << 31),
|
2014-03-16 14:08:00 +00:00
|
|
|
GST_MESSAGE_DEVICE_ADDED = GST_MESSAGE_EXTENDED + 1,
|
|
|
|
GST_MESSAGE_DEVICE_REMOVED = GST_MESSAGE_EXTENDED + 2,
|
2006-10-09 11:06:50 +00:00
|
|
|
GST_MESSAGE_ANY = ~0
|
2005-03-21 17:34:02 +00:00
|
|
|
} GstMessageType;
|
|
|
|
|
2005-07-18 12:49:53 +00:00
|
|
|
#include <gst/gstminiobject.h>
|
|
|
|
#include <gst/gstobject.h>
|
|
|
|
#include <gst/gstelement.h>
|
2005-09-07 13:22:16 +00:00
|
|
|
#include <gst/gsttaglist.h>
|
2005-07-18 12:49:53 +00:00
|
|
|
#include <gst/gststructure.h>
|
2011-06-07 11:25:26 +00:00
|
|
|
#include <gst/gstquery.h>
|
2012-03-14 16:41:48 +00:00
|
|
|
#include <gst/gsttoc.h>
|
2012-10-16 16:27:04 +00:00
|
|
|
#include <gst/gstdevice.h>
|
2005-03-21 17:34:02 +00:00
|
|
|
|
2009-10-07 08:37:39 +00:00
|
|
|
#define GST_TYPE_MESSAGE (gst_message_get_type())
|
2009-12-07 19:32:12 +00:00
|
|
|
#define GST_IS_MESSAGE(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_MESSAGE))
|
2005-11-09 16:00:05 +00:00
|
|
|
#define GST_MESSAGE_CAST(obj) ((GstMessage*)(obj))
|
2009-11-28 23:21:24 +00:00
|
|
|
#define GST_MESSAGE(obj) (GST_MESSAGE_CAST(obj))
|
2005-03-21 17:34:02 +00:00
|
|
|
|
|
|
|
/* the lock is used to handle the synchronous handling of messages,
|
|
|
|
* the emiting thread is block until the handling thread processed
|
|
|
|
* the message using this mutex/cond pair */
|
2012-01-19 08:27:04 +00:00
|
|
|
#define GST_MESSAGE_GET_LOCK(message) (&GST_MESSAGE_CAST(message)->lock)
|
2009-10-07 08:37:39 +00:00
|
|
|
#define GST_MESSAGE_LOCK(message) g_mutex_lock(GST_MESSAGE_GET_LOCK(message))
|
|
|
|
#define GST_MESSAGE_UNLOCK(message) g_mutex_unlock(GST_MESSAGE_GET_LOCK(message))
|
2012-01-19 08:27:04 +00:00
|
|
|
#define GST_MESSAGE_GET_COND(message) (&GST_MESSAGE_CAST(message)->cond)
|
|
|
|
#define GST_MESSAGE_WAIT(message) g_cond_wait(GST_MESSAGE_GET_COND(message),GST_MESSAGE_GET_LOCK(message))
|
|
|
|
#define GST_MESSAGE_SIGNAL(message) g_cond_signal(GST_MESSAGE_GET_COND(message))
|
2005-03-21 17:34:02 +00:00
|
|
|
|
2005-11-09 16:00:05 +00:00
|
|
|
/**
|
|
|
|
* GST_MESSAGE_TYPE:
|
|
|
|
* @message: a #GstMessage
|
|
|
|
*
|
|
|
|
* Get the #GstMessageType of @message.
|
|
|
|
*/
|
2009-10-23 17:19:04 +00:00
|
|
|
#define GST_MESSAGE_TYPE(message) (GST_MESSAGE_CAST(message)->type)
|
2014-03-16 19:29:27 +00:00
|
|
|
/**
|
|
|
|
* GST_MESSAGE_TYPE_IS_EXTENDED:
|
|
|
|
* @message: a #GstMessage
|
|
|
|
*
|
|
|
|
* Check if the message is in the extended message group
|
|
|
|
* (Since 1.4)
|
|
|
|
*/
|
|
|
|
#define GST_MESSAGE_TYPE_IS_EXTENDED(message) (!!(GST_MESSAGE_CAST(message)->type & GST_MESSAGE_EXTENDED))
|
|
|
|
|
2006-02-13 11:19:32 +00:00
|
|
|
/**
|
|
|
|
* GST_MESSAGE_TYPE_NAME:
|
|
|
|
* @message: a #GstMessage
|
|
|
|
*
|
|
|
|
* Get a constant string representation of the #GstMessageType of @message.
|
|
|
|
*/
|
2009-10-07 08:37:39 +00:00
|
|
|
#define GST_MESSAGE_TYPE_NAME(message) gst_message_type_get_name(GST_MESSAGE_TYPE(message))
|
2005-11-09 16:00:05 +00:00
|
|
|
/**
|
|
|
|
* GST_MESSAGE_TIMESTAMP:
|
|
|
|
* @message: a #GstMessage
|
|
|
|
*
|
|
|
|
* Get the timestamp of @message. This is the timestamp when the message
|
|
|
|
* was created.
|
|
|
|
*/
|
2009-10-23 17:19:04 +00:00
|
|
|
#define GST_MESSAGE_TIMESTAMP(message) (GST_MESSAGE_CAST(message)->timestamp)
|
2005-11-09 16:00:05 +00:00
|
|
|
/**
|
|
|
|
* GST_MESSAGE_SRC:
|
|
|
|
* @message: a #GstMessage
|
|
|
|
*
|
|
|
|
* Get the object that posted @message.
|
|
|
|
*/
|
2009-10-23 17:19:04 +00:00
|
|
|
#define GST_MESSAGE_SRC(message) (GST_MESSAGE_CAST(message)->src)
|
2011-02-22 15:04:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_MESSAGE_SEQNUM:
|
|
|
|
* @message: a #GstMessage
|
|
|
|
*
|
|
|
|
* Get the sequence number of @message.
|
|
|
|
*/
|
|
|
|
#define GST_MESSAGE_SEQNUM(message) (GST_MESSAGE_CAST(message)->seqnum)
|
|
|
|
|
2009-06-03 20:10:39 +00:00
|
|
|
/**
|
|
|
|
* GST_MESSAGE_SRC_NAME:
|
|
|
|
* @message: a #GstMessage
|
|
|
|
*
|
|
|
|
* Get the name of the object that posted @message. Returns "(NULL)" if
|
|
|
|
* the message has no source object set.
|
|
|
|
*/
|
2009-10-07 08:37:39 +00:00
|
|
|
#define GST_MESSAGE_SRC_NAME(message) (GST_MESSAGE_SRC(message) ? \
|
2009-06-03 20:10:39 +00:00
|
|
|
GST_OBJECT_NAME (GST_MESSAGE_SRC(message)) : "(NULL)")
|
2005-03-21 17:34:02 +00:00
|
|
|
|
2008-10-06 15:31:49 +00:00
|
|
|
/**
|
|
|
|
* GstStructureChangeType:
|
|
|
|
* @GST_STRUCTURE_CHANGE_TYPE_PAD_LINK: Pad linking is starting or done.
|
|
|
|
* @GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK: Pad unlinking is starting or done.
|
|
|
|
*
|
2009-11-25 14:44:05 +00:00
|
|
|
* The type of a %GST_MESSAGE_STRUCTURE_CHANGE.
|
2008-10-06 15:31:49 +00:00
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_STRUCTURE_CHANGE_TYPE_PAD_LINK = 0,
|
|
|
|
GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK = 1
|
|
|
|
} GstStructureChangeType;
|
|
|
|
|
2009-04-21 11:42:01 +00:00
|
|
|
/**
|
|
|
|
* GstStreamStatusType:
|
|
|
|
* @GST_STREAM_STATUS_TYPE_CREATE: A new thread need to be created.
|
|
|
|
* @GST_STREAM_STATUS_TYPE_ENTER: a thread entered its loop function
|
|
|
|
* @GST_STREAM_STATUS_TYPE_LEAVE: a thread left its loop function
|
|
|
|
* @GST_STREAM_STATUS_TYPE_DESTROY: a thread is destroyed
|
|
|
|
* @GST_STREAM_STATUS_TYPE_START: a thread is started
|
|
|
|
* @GST_STREAM_STATUS_TYPE_PAUSE: a thread is paused
|
|
|
|
* @GST_STREAM_STATUS_TYPE_STOP: a thread is stopped
|
|
|
|
*
|
2009-11-25 14:44:05 +00:00
|
|
|
* The type of a %GST_MESSAGE_STREAM_STATUS. The stream status messages inform the
|
2009-04-21 11:42:01 +00:00
|
|
|
* application of new streaming threads and their status.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_STREAM_STATUS_TYPE_CREATE = 0,
|
|
|
|
GST_STREAM_STATUS_TYPE_ENTER = 1,
|
|
|
|
GST_STREAM_STATUS_TYPE_LEAVE = 2,
|
|
|
|
GST_STREAM_STATUS_TYPE_DESTROY = 3,
|
|
|
|
|
|
|
|
GST_STREAM_STATUS_TYPE_START = 8,
|
|
|
|
GST_STREAM_STATUS_TYPE_PAUSE = 9,
|
|
|
|
GST_STREAM_STATUS_TYPE_STOP = 10
|
|
|
|
} GstStreamStatusType;
|
|
|
|
|
2011-01-05 12:41:08 +00:00
|
|
|
/**
|
|
|
|
* GstProgressType:
|
|
|
|
* @GST_PROGRESS_TYPE_START: A new task started.
|
|
|
|
* @GST_PROGRESS_TYPE_CONTINUE: A task completed and a new one continues.
|
|
|
|
* @GST_PROGRESS_TYPE_COMPLETE: A task completed.
|
|
|
|
* @GST_PROGRESS_TYPE_CANCELED: A task was canceled.
|
|
|
|
* @GST_PROGRESS_TYPE_ERROR: A task caused an error. An error message is also
|
|
|
|
* posted on the bus.
|
|
|
|
*
|
|
|
|
* The type of a %GST_MESSAGE_PROGRESS. The progress messages inform the
|
2013-12-07 14:38:19 +00:00
|
|
|
* application of the status of asynchronous tasks.
|
2011-01-05 12:41:08 +00:00
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_PROGRESS_TYPE_START = 0,
|
|
|
|
GST_PROGRESS_TYPE_CONTINUE = 1,
|
|
|
|
GST_PROGRESS_TYPE_COMPLETE = 2,
|
|
|
|
GST_PROGRESS_TYPE_CANCELED = 3,
|
2012-04-23 07:18:48 +00:00
|
|
|
GST_PROGRESS_TYPE_ERROR = 4
|
2011-01-05 12:41:08 +00:00
|
|
|
} GstProgressType;
|
|
|
|
|
2005-11-09 16:00:05 +00:00
|
|
|
/**
|
|
|
|
* GstMessage:
|
|
|
|
* @mini_object: the parent structure
|
|
|
|
* @type: the #GstMessageType of the message
|
|
|
|
* @timestamp: the timestamp of the message
|
|
|
|
* @src: the src of the message
|
2011-09-26 18:47:35 +00:00
|
|
|
* @seqnum: the sequence number of the message
|
2005-11-09 16:00:05 +00:00
|
|
|
*
|
2006-07-02 21:52:57 +00:00
|
|
|
* A #GstMessage.
|
2005-11-09 16:00:05 +00:00
|
|
|
*/
|
2005-03-21 17:34:02 +00:00
|
|
|
struct _GstMessage
|
|
|
|
{
|
2012-01-19 08:27:04 +00:00
|
|
|
GstMiniObject mini_object;
|
2005-03-21 17:34:02 +00:00
|
|
|
|
|
|
|
/*< public > *//* with COW */
|
2012-01-19 08:27:04 +00:00
|
|
|
GstMessageType type;
|
|
|
|
guint64 timestamp;
|
|
|
|
GstObject *src;
|
|
|
|
guint32 seqnum;
|
2005-03-21 17:34:02 +00:00
|
|
|
|
2011-05-10 11:34:10 +00:00
|
|
|
/*< private >*//* with MESSAGE_LOCK */
|
2012-01-19 08:27:04 +00:00
|
|
|
GMutex lock; /* lock and cond for async delivery */
|
|
|
|
GCond cond;
|
2005-03-21 17:34:02 +00:00
|
|
|
};
|
|
|
|
|
2009-10-07 08:37:39 +00:00
|
|
|
GType gst_message_get_type (void);
|
2005-03-21 17:34:02 +00:00
|
|
|
|
2009-10-07 08:37:39 +00:00
|
|
|
const gchar* gst_message_type_get_name (GstMessageType type);
|
|
|
|
GQuark gst_message_type_to_quark (GstMessageType type);
|
2005-09-28 16:43:20 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
/* refcounting */
|
2005-10-08 14:48:17 +00:00
|
|
|
/**
|
|
|
|
* gst_message_ref:
|
|
|
|
* @msg: the message to ref
|
|
|
|
*
|
2006-05-14 19:25:51 +00:00
|
|
|
* Convenience macro to increase the reference count of the message.
|
|
|
|
*
|
|
|
|
* Returns: @msg (for convenience when doing assignments)
|
2005-10-08 14:48:17 +00:00
|
|
|
*/
|
2006-05-10 16:44:15 +00:00
|
|
|
#ifdef _FOOL_GTK_DOC_
|
|
|
|
G_INLINE_FUNC GstMessage * gst_message_ref (GstMessage * msg);
|
|
|
|
#endif
|
|
|
|
|
2006-03-21 13:50:52 +00:00
|
|
|
static inline GstMessage *
|
|
|
|
gst_message_ref (GstMessage * msg)
|
|
|
|
{
|
2009-12-07 19:52:22 +00:00
|
|
|
return (GstMessage *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (msg));
|
2006-03-21 13:50:52 +00:00
|
|
|
}
|
|
|
|
|
2005-10-08 14:48:17 +00:00
|
|
|
/**
|
|
|
|
* gst_message_unref:
|
|
|
|
* @msg: the message to unref
|
|
|
|
*
|
2006-07-02 21:52:57 +00:00
|
|
|
* Convenience macro to decrease the reference count of the message, possibly
|
|
|
|
* freeing it.
|
2005-10-08 14:48:17 +00:00
|
|
|
*/
|
2009-02-22 17:51:08 +00:00
|
|
|
#ifdef _FOOL_GTK_DOC_
|
|
|
|
G_INLINE_FUNC void gst_message_unref (GstMessage * msg);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
gst_message_unref (GstMessage * msg)
|
|
|
|
{
|
|
|
|
gst_mini_object_unref (GST_MINI_OBJECT_CAST (msg));
|
|
|
|
}
|
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
/* copy message */
|
2005-10-08 14:48:17 +00:00
|
|
|
/**
|
|
|
|
* gst_message_copy:
|
|
|
|
* @msg: the message to copy
|
|
|
|
*
|
2005-10-21 11:36:32 +00:00
|
|
|
* Creates a copy of the message. Returns a copy of the message.
|
2005-10-08 14:48:17 +00:00
|
|
|
*
|
2010-12-07 18:35:04 +00:00
|
|
|
* Returns: (transfer full): a new copy of @msg.
|
2009-03-12 09:48:21 +00:00
|
|
|
*
|
2005-10-08 14:48:17 +00:00
|
|
|
* MT safe
|
|
|
|
*/
|
2009-02-22 17:51:08 +00:00
|
|
|
#ifdef _FOOL_GTK_DOC_
|
|
|
|
G_INLINE_FUNC GstMessage * gst_message_copy (const GstMessage * msg);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static inline GstMessage *
|
|
|
|
gst_message_copy (const GstMessage * msg)
|
|
|
|
{
|
2010-09-01 23:01:25 +00:00
|
|
|
return GST_MESSAGE_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (msg)));
|
2009-02-22 17:51:08 +00:00
|
|
|
}
|
|
|
|
|
2011-05-10 11:34:10 +00:00
|
|
|
/**
|
|
|
|
* gst_message_is_writable:
|
|
|
|
* @msg: a #GstMessage
|
|
|
|
*
|
|
|
|
* Tests if you can safely write into a message's structure or validly
|
|
|
|
* modify the seqnum and timestamp fields.
|
|
|
|
*/
|
|
|
|
#define gst_message_is_writable(msg) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (msg))
|
2005-10-08 14:48:17 +00:00
|
|
|
/**
|
|
|
|
* gst_message_make_writable:
|
2010-12-07 18:35:04 +00:00
|
|
|
* @msg: (transfer full): the message to make writable
|
2005-10-08 14:48:17 +00:00
|
|
|
*
|
|
|
|
* Checks if a message is writable. If not, a writable copy is made and
|
2010-12-07 18:35:04 +00:00
|
|
|
* returned.
|
|
|
|
*
|
|
|
|
* Returns: (transfer full): a message (possibly a duplicate) that is writable.
|
2005-10-08 14:48:17 +00:00
|
|
|
*
|
|
|
|
* MT safe
|
|
|
|
*/
|
2009-12-07 19:52:22 +00:00
|
|
|
#define gst_message_make_writable(msg) GST_MESSAGE_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (msg)))
|
2011-05-10 11:34:10 +00:00
|
|
|
/**
|
|
|
|
* gst_message_replace:
|
|
|
|
* @old_message: (inout) (transfer full): pointer to a pointer to a #GstMessage
|
|
|
|
* to be replaced.
|
|
|
|
* @new_message: (allow-none) (transfer none): pointer to a #GstMessage that will
|
|
|
|
* replace the message pointed to by @old_message.
|
|
|
|
*
|
|
|
|
* Modifies a pointer to a #GstMessage to point to a different #GstMessage. The
|
|
|
|
* modification is done atomically (so this is useful for ensuring thread safety
|
|
|
|
* in some cases), and the reference counts are updated appropriately (the old
|
|
|
|
* message is unreffed, the new one is reffed).
|
|
|
|
*
|
2014-05-29 21:54:34 +00:00
|
|
|
* Either @new_message or the #GstMessage pointed to by @old_message may be %NULL.
|
2011-12-05 10:07:24 +00:00
|
|
|
*
|
2014-05-29 21:54:34 +00:00
|
|
|
* Returns: %TRUE if @new_message was different from @old_message
|
2011-05-10 11:34:10 +00:00
|
|
|
*/
|
2011-12-05 10:07:24 +00:00
|
|
|
#ifdef _FOOL_GTK_DOC_
|
|
|
|
G_INLINE_FUNC gboolean gst_message_replace (GstMessage **old_message, GstMessage *new_message);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static inline gboolean
|
|
|
|
gst_message_replace (GstMessage **old_message, GstMessage *new_message)
|
|
|
|
{
|
|
|
|
return gst_mini_object_replace ((GstMiniObject **) old_message, (GstMiniObject *) new_message);
|
|
|
|
}
|
2011-05-10 11:34:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* custom messages */
|
|
|
|
GstMessage * gst_message_new_custom (GstMessageType type,
|
|
|
|
GstObject * src,
|
2011-11-26 19:44:23 +00:00
|
|
|
GstStructure * structure) G_GNUC_MALLOC;
|
2011-05-10 11:34:10 +00:00
|
|
|
const GstStructure *
|
|
|
|
gst_message_get_structure (GstMessage *message);
|
|
|
|
|
|
|
|
gboolean gst_message_has_name (GstMessage *message, const gchar *name);
|
2005-03-21 17:34:02 +00:00
|
|
|
|
2008-11-04 12:22:53 +00:00
|
|
|
/* identifiers for events and messages */
|
|
|
|
guint32 gst_message_get_seqnum (GstMessage *message);
|
|
|
|
void gst_message_set_seqnum (GstMessage *message, guint32 seqnum);
|
|
|
|
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
/* EOS */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_eos (GstObject * src) G_GNUC_MALLOC;
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* ERROR */
|
|
|
|
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_error (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_error (GstMessage *message, GError **gerror, gchar **debug);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* WARNING */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_warning (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_warning (GstMessage *message, GError **gerror, gchar **debug);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* INFO */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_info (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_info (GstMessage *message, GError **gerror, gchar **debug);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* TAG */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_tag (GstObject * src, GstTagList * tag_list) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_tag (GstMessage *message, GstTagList **tag_list);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* BUFFERING */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_buffering (GstObject * src, gint percent) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_buffering (GstMessage *message, gint *percent);
|
2009-04-21 11:37:22 +00:00
|
|
|
void gst_message_set_buffering_stats (GstMessage *message, GstBufferingMode mode,
|
|
|
|
gint avg_in, gint avg_out,
|
|
|
|
gint64 buffering_left);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
void gst_message_parse_buffering_stats (GstMessage *message, GstBufferingMode *mode,
|
|
|
|
gint *avg_in, gint *avg_out,
|
|
|
|
gint64 *buffering_left);
|
|
|
|
|
|
|
|
/* STATE_CHANGED */
|
2009-10-07 08:37:39 +00:00
|
|
|
GstMessage * gst_message_new_state_changed (GstObject * src, GstState oldstate,
|
2011-11-26 18:57:44 +00:00
|
|
|
GstState newstate, GstState pending) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_state_changed (GstMessage *message, GstState *oldstate,
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
GstState *newstate, GstState *pending);
|
|
|
|
|
|
|
|
/* STATE_DIRTY */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_state_dirty (GstObject * src) G_GNUC_MALLOC;
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
2009-06-01 10:19:52 +00:00
|
|
|
/* STEP_DONE */
|
|
|
|
GstMessage * gst_message_new_step_done (GstObject * src, GstFormat format, guint64 amount,
|
2009-10-07 08:37:39 +00:00
|
|
|
gdouble rate, gboolean flush, gboolean intermediate,
|
2011-11-26 18:57:44 +00:00
|
|
|
guint64 duration, gboolean eos) G_GNUC_MALLOC;
|
2009-06-01 10:19:52 +00:00
|
|
|
void gst_message_parse_step_done (GstMessage * message, GstFormat *format, guint64 *amount,
|
2009-05-18 13:48:20 +00:00
|
|
|
gdouble *rate, gboolean *flush, gboolean *intermediate,
|
2009-10-07 08:37:39 +00:00
|
|
|
guint64 *duration, gboolean *eos);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
/* CLOCK_PROVIDE */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_clock_provide (GstObject * src, GstClock *clock, gboolean ready) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_clock_provide (GstMessage *message, GstClock **clock,
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
gboolean *ready);
|
|
|
|
|
|
|
|
/* CLOCK_LOST */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_clock_lost (GstObject * src, GstClock *clock) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_clock_lost (GstMessage *message, GstClock **clock);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* NEW_CLOCK */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_new_clock (GstObject * src, GstClock *clock) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_new_clock (GstMessage *message, GstClock **clock);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* APPLICATION */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_application (GstObject * src, GstStructure * structure) G_GNUC_MALLOC;
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* ELEMENT */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_element (GstObject * src, GstStructure * structure) G_GNUC_MALLOC;
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* SEGMENT_START */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_segment_start (GstObject * src, GstFormat format, gint64 position) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_segment_start (GstMessage *message, GstFormat *format,
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
gint64 *position);
|
|
|
|
|
|
|
|
/* SEGMENT_DONE */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_segment_done (GstObject * src, GstFormat format, gint64 position) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_segment_done (GstMessage *message, GstFormat *format,
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
gint64 *position);
|
|
|
|
|
2012-09-02 00:17:44 +00:00
|
|
|
/* DURATION_CHANGED */
|
|
|
|
GstMessage * gst_message_new_duration_changed (GstObject * src) G_GNUC_MALLOC;
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* LATENCY */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_latency (GstObject * src) G_GNUC_MALLOC;
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* ASYNC_START */
|
2011-11-26 19:44:23 +00:00
|
|
|
GstMessage * gst_message_new_async_start (GstObject * src) G_GNUC_MALLOC;
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
|
|
|
/* ASYNC_DONE */
|
2012-06-13 08:52:48 +00:00
|
|
|
GstMessage * gst_message_new_async_done (GstObject * src, GstClockTime running_time) G_GNUC_MALLOC;
|
|
|
|
void gst_message_parse_async_done (GstMessage *message, GstClockTime *running_time);
|
Reorder the message docs and headers for clarity.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_set_buffering_stats),
(gst_message_parse_buffering_stats):
* gst/gstmessage.h:
* gst/gstquery.c: (gst_query_new_latency), (gst_query_set_latency),
(gst_query_parse_latency), (gst_query_new_buffering),
(gst_query_set_buffering_percent),
(gst_query_parse_buffering_percent),
(gst_query_set_buffering_stats), (gst_query_parse_buffering_stats),
(gst_query_set_buffering_avail), (gst_query_parse_buffering_avail):
* gst/gstquery.h:
Reorder the message docs and headers for clarity.
Add aditional buffering stats API for messages.
Add buffering query.
Convert some leftover queries to use GstQuark.
API: gst_message_set_buffering_stats
API: gst_message_parse_buffering_stats
API: GST_QUERY_BUFFERING
API: GstBufferingMode
API: gst_query_new_buffering
API: gst_query_set_buffering_percent
API: gst_query_parse_buffering_percent
API: gst_query_set_buffering_stats
API: gst_query_parse_buffering_stats
API: gst_query_set_buffering_avail
API: gst_query_parse_buffering_avail
2008-04-08 19:59:06 +00:00
|
|
|
|
2008-10-06 15:31:49 +00:00
|
|
|
/* STRUCTURE CHANGE */
|
2009-10-07 08:37:39 +00:00
|
|
|
GstMessage * gst_message_new_structure_change (GstObject * src, GstStructureChangeType type,
|
2011-11-26 18:57:44 +00:00
|
|
|
GstElement *owner, gboolean busy) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_structure_change (GstMessage *message, GstStructureChangeType *type,
|
2008-10-06 15:31:49 +00:00
|
|
|
GstElement **owner, gboolean *busy);
|
|
|
|
|
2009-04-21 11:42:01 +00:00
|
|
|
/* STREAM STATUS */
|
2009-10-07 08:37:39 +00:00
|
|
|
GstMessage * gst_message_new_stream_status (GstObject * src, GstStreamStatusType type,
|
2011-11-26 18:57:44 +00:00
|
|
|
GstElement *owner) G_GNUC_MALLOC;
|
2009-10-07 08:37:39 +00:00
|
|
|
void gst_message_parse_stream_status (GstMessage *message, GstStreamStatusType *type,
|
2009-04-21 11:42:01 +00:00
|
|
|
GstElement **owner);
|
|
|
|
void gst_message_set_stream_status_object (GstMessage *message, const GValue *object);
|
|
|
|
const GValue * gst_message_get_stream_status_object (GstMessage *message);
|
|
|
|
|
2009-02-18 14:31:55 +00:00
|
|
|
/* REQUEST_STATE */
|
2011-11-26 18:57:44 +00:00
|
|
|
GstMessage * gst_message_new_request_state (GstObject * src, GstState state) G_GNUC_MALLOC;
|
2009-02-18 14:31:55 +00:00
|
|
|
void gst_message_parse_request_state (GstMessage * message, GstState *state);
|
|
|
|
|
2009-06-10 13:48:35 +00:00
|
|
|
/* STEP_START */
|
2009-06-12 11:18:21 +00:00
|
|
|
GstMessage * gst_message_new_step_start (GstObject * src, gboolean active, GstFormat format,
|
|
|
|
guint64 amount, gdouble rate, gboolean flush,
|
2011-11-26 18:57:44 +00:00
|
|
|
gboolean intermediate) G_GNUC_MALLOC;
|
2009-06-12 11:18:21 +00:00
|
|
|
void gst_message_parse_step_start (GstMessage * message, gboolean *active, GstFormat *format,
|
|
|
|
guint64 *amount, gdouble *rate, gboolean *flush,
|
2009-10-07 08:37:39 +00:00
|
|
|
gboolean *intermediate);
|
2009-06-10 13:48:35 +00:00
|
|
|
|
2010-03-17 18:16:42 +00:00
|
|
|
/* QOS */
|
|
|
|
GstMessage * gst_message_new_qos (GstObject * src, gboolean live, guint64 running_time,
|
2011-11-26 18:57:44 +00:00
|
|
|
guint64 stream_time, guint64 timestamp, guint64 duration) G_GNUC_MALLOC;
|
2010-03-17 18:16:42 +00:00
|
|
|
void gst_message_set_qos_values (GstMessage * message, gint64 jitter, gdouble proportion,
|
|
|
|
gint quality);
|
|
|
|
void gst_message_set_qos_stats (GstMessage * message, GstFormat format, guint64 processed,
|
|
|
|
guint64 dropped);
|
|
|
|
void gst_message_parse_qos (GstMessage * message, gboolean * live, guint64 * running_time,
|
|
|
|
guint64 * stream_time, guint64 * timestamp, guint64 * duration);
|
|
|
|
void gst_message_parse_qos_values (GstMessage * message, gint64 * jitter, gdouble * proportion,
|
|
|
|
gint * quality);
|
|
|
|
void gst_message_parse_qos_stats (GstMessage * message, GstFormat * format, guint64 * processed,
|
|
|
|
guint64 * dropped);
|
2011-01-05 12:41:08 +00:00
|
|
|
/* PROGRESS */
|
2011-01-06 17:55:43 +00:00
|
|
|
GstMessage * gst_message_new_progress (GstObject * src, GstProgressType type, const gchar *code,
|
2011-11-26 18:57:44 +00:00
|
|
|
const gchar *text) G_GNUC_MALLOC;
|
2011-01-06 17:55:43 +00:00
|
|
|
void gst_message_parse_progress (GstMessage * message, GstProgressType * type, gchar ** code,
|
2011-01-05 12:41:08 +00:00
|
|
|
gchar ** text);
|
|
|
|
|
2012-03-14 16:41:48 +00:00
|
|
|
/* TOC */
|
|
|
|
GstMessage * gst_message_new_toc (GstObject *src, GstToc *toc, gboolean updated);
|
|
|
|
void gst_message_parse_toc (GstMessage *message, GstToc **toc, gboolean *updated);
|
2010-03-17 18:16:42 +00:00
|
|
|
|
2012-06-13 08:16:27 +00:00
|
|
|
/* RESET_TIME */
|
|
|
|
GstMessage * gst_message_new_reset_time (GstObject * src, GstClockTime running_time) G_GNUC_MALLOC;
|
|
|
|
void gst_message_parse_reset_time (GstMessage *message, GstClockTime *running_time);
|
|
|
|
|
2012-07-09 18:08:15 +00:00
|
|
|
/* STREAM_START */
|
|
|
|
GstMessage * gst_message_new_stream_start (GstObject * src) G_GNUC_MALLOC;
|
|
|
|
|
2013-07-22 09:41:35 +00:00
|
|
|
void gst_message_set_group_id (GstMessage *message, guint group_id);
|
|
|
|
gboolean gst_message_parse_group_id (GstMessage *message, guint *group_id);
|
|
|
|
|
2013-03-28 14:35:13 +00:00
|
|
|
/* NEED_CONTEXT */
|
2013-09-17 11:50:08 +00:00
|
|
|
GstMessage * gst_message_new_need_context (GstObject * src, const gchar * context_type) G_GNUC_MALLOC;
|
|
|
|
gboolean gst_message_parse_context_type (GstMessage * message, const gchar ** context_type);
|
2013-03-28 14:35:13 +00:00
|
|
|
|
|
|
|
/* HAVE_CONTEXT */
|
|
|
|
GstMessage * gst_message_new_have_context (GstObject * src, GstContext *context) G_GNUC_MALLOC;
|
|
|
|
void gst_message_parse_have_context (GstMessage *message, GstContext **context);
|
|
|
|
|
2012-10-16 16:27:04 +00:00
|
|
|
/* DEVICE_ADDED */
|
|
|
|
GstMessage * gst_message_new_device_added (GstObject * src, GstDevice * device) G_GNUC_MALLOC;
|
|
|
|
void gst_message_parse_device_added (GstMessage * message, GstDevice ** device);
|
|
|
|
|
|
|
|
/* DEVICE_REMOVED */
|
|
|
|
GstMessage * gst_message_new_device_removed (GstObject * src, GstDevice * device) G_GNUC_MALLOC;
|
|
|
|
void gst_message_parse_device_removed (GstMessage * message, GstDevice ** device);
|
|
|
|
|
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
G_END_DECLS
|
2005-07-18 12:49:53 +00:00
|
|
|
|
2005-03-21 17:34:02 +00:00
|
|
|
#endif /* __GST_MESSAGE_H__ */
|