mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
docs/libs/gstreamer-libs-sections.txt: Added new symbol to docs.
Original commit message from CVS: * docs/libs/gstreamer-libs-sections.txt: Added new symbol to docs. * libs/gst/base/gstbasesrc.c: (gst_base_src_class_init), (gst_base_src_init), (gst_base_src_set_format), (gst_base_src_default_query), (gst_base_src_query), (gst_base_src_default_do_seek), (gst_base_src_do_seek), (gst_base_src_perform_seek), (gst_base_src_send_event), (gst_base_src_default_event), (gst_base_src_event_handler), (gst_base_src_set_property), (gst_base_src_get_property), (gst_base_src_wait), (gst_base_src_do_sync), (gst_base_src_update_length), (gst_base_src_get_range), (gst_base_src_check_get_range), (gst_base_src_loop), (gst_base_src_default_negotiate), (gst_base_src_start), (gst_base_src_activate_push), (gst_base_src_activate_pull), (gst_base_src_change_state): * libs/gst/base/gstbasesrc.h: Implement seeking to other formats than _BYTES. Implement more seeking methods correctly. Doc updates. Added query vmethod. Added do_seek vmethod to make life easier for subclasses when seeking. API addition: gst_base_src_set_format()
This commit is contained in:
parent
15d4e4548d
commit
aabc185dc6
3 changed files with 580 additions and 307 deletions
|
@ -131,6 +131,7 @@ GstBaseSrcFlags
|
|||
|
||||
gst_base_src_is_live
|
||||
gst_base_src_set_live
|
||||
gst_base_src_set_format
|
||||
|
||||
GST_BASE_SRC_PAD
|
||||
<SUBSECTION Standard>
|
||||
|
@ -325,6 +326,12 @@ THREAD_TEST_RUNNING
|
|||
GST_START_TEST
|
||||
GST_END_TEST
|
||||
|
||||
sync_cond
|
||||
mutex
|
||||
GST_CAT_DEFAULT
|
||||
thread_list
|
||||
start_cond
|
||||
|
||||
fail_unless_equals_int
|
||||
fail_unless_equals_string
|
||||
fail_unless_equals_uint64
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -93,18 +93,25 @@ struct _GstBaseSrc {
|
|||
GstSegment segment;
|
||||
gboolean need_newsegment;
|
||||
|
||||
guint64 offset; /* current offset in the resource */
|
||||
guint64 size; /* total size of the resource */
|
||||
guint64 offset; /* current offset in the resource, unused */
|
||||
guint64 size; /* total size of the resource, unused */
|
||||
|
||||
gint num_buffers;
|
||||
gint num_buffers_left;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING_LARGE];
|
||||
union {
|
||||
struct {
|
||||
gboolean typefind;
|
||||
gboolean running;
|
||||
GstEvent *pending_seek;
|
||||
} ABI;
|
||||
gpointer _gst_reserved[GST_PADDING_LARGE];
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* _GstBaseSrcClass:
|
||||
* GstBaseSrcClass:
|
||||
* @create: ask the subclass to create a buffer with offset and size
|
||||
* @start: start processing
|
||||
*/
|
||||
|
@ -150,8 +157,14 @@ struct _GstBaseSrcClass {
|
|||
GstFlowReturn (*create) (GstBaseSrc *src, guint64 offset, guint size,
|
||||
GstBuffer **buf);
|
||||
|
||||
/* additions that change padding... */
|
||||
/* notify subclasses of a seek */
|
||||
gboolean (*do_seek) (GstBaseSrc *src, GstSegment *segment);
|
||||
/* notify subclasses of a query */
|
||||
gboolean (*query) (GstBaseSrc *src, GstQuery *query);
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING_LARGE];
|
||||
gpointer _gst_reserved[GST_PADDING_LARGE - 2];
|
||||
};
|
||||
|
||||
GType gst_base_src_get_type (void);
|
||||
|
@ -159,6 +172,8 @@ GType gst_base_src_get_type (void);
|
|||
void gst_base_src_set_live (GstBaseSrc *src, gboolean live);
|
||||
gboolean gst_base_src_is_live (GstBaseSrc *src);
|
||||
|
||||
void gst_base_src_set_format (GstBaseSrc *src, GstFormat format);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_BASE_SRC_H__ */
|
||||
|
|
Loading…
Reference in a new issue