Some cleanups

Original commit message from CVS:
Some cleanups
Add a KEY_UNIT flag for a seek event.
This commit is contained in:
Wim Taymans 2002-06-02 11:49:57 +00:00
parent 71e51b171c
commit 0a2c1e9c61
3 changed files with 5 additions and 4 deletions

View file

@ -73,7 +73,7 @@ void
gst_buffer_print_stats (void) gst_buffer_print_stats (void)
{ {
g_log (g_log_domain_gstreamer, G_LOG_LEVEL_INFO, g_log (g_log_domain_gstreamer, G_LOG_LEVEL_INFO,
"%d live buffers", _gst_buffer_live); "%d live buffer(s)", _gst_buffer_live);
} }
/** /**

View file

@ -68,6 +68,7 @@ typedef enum {
GST_SEEK_FLAG_FLUSH = (1 << (GST_SEEK_FLAGS_SHIFT + 0)), GST_SEEK_FLAG_FLUSH = (1 << (GST_SEEK_FLAGS_SHIFT + 0)),
GST_SEEK_FLAG_ACCURATE = (1 << (GST_SEEK_FLAGS_SHIFT + 1)), GST_SEEK_FLAG_ACCURATE = (1 << (GST_SEEK_FLAGS_SHIFT + 1)),
GST_SEEK_FLAG_KEY_UNIT = (1 << (GST_SEEK_FLAGS_SHIFT + 2)),
} GstSeekType; } GstSeekType;
typedef enum { typedef enum {

View file

@ -131,10 +131,10 @@ typedef void (*GstPadChainFunction) (GstPad *pad,GstBuffer *buf);
typedef GstBuffer* (*GstPadGetFunction) (GstPad *pad); typedef GstBuffer* (*GstPadGetFunction) (GstPad *pad);
typedef gboolean (*GstPadEventFunction) (GstPad *pad, GstEvent *event); typedef gboolean (*GstPadEventFunction) (GstPad *pad, GstEvent *event);
typedef gboolean (*GstPadConvertFunction) (GstPad *pad, typedef gboolean (*GstPadConvertFunction) (GstPad *pad,
GstSeekType src_format, gint64 src_value, GstFormat src_format, gint64 src_value,
GstSeekType *dest_format, gint64 *dest_value); GstFormat *dest_format, gint64 *dest_value);
typedef gboolean (*GstPadQueryFunction) (GstPad *pad, GstPadQueryType type, typedef gboolean (*GstPadQueryFunction) (GstPad *pad, GstPadQueryType type,
GstSeekType *format, gint64 *value); GstFormat *format, gint64 *value);
typedef GList* (*GstPadIntConnFunction) (GstPad *pad); typedef GList* (*GstPadIntConnFunction) (GstPad *pad);
typedef GstPadConnectReturn (*GstPadConnectFunction) (GstPad *pad, GstCaps *caps); typedef GstPadConnectReturn (*GstPadConnectFunction) (GstPad *pad, GstCaps *caps);