Some cleanups
authorWim Taymans <wim.taymans@gmail.com>
Sun, 2 Jun 2002 11:49:57 +0000 (11:49 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 2 Jun 2002 11:49:57 +0000 (11:49 +0000)
Original commit message from CVS:
Some cleanups
Add a KEY_UNIT flag for a seek event.

gst/gstbuffer.c
gst/gstevent.h
gst/gstpad.h

index dc7efeb..635788a 100644 (file)
@@ -73,7 +73,7 @@ void
 gst_buffer_print_stats (void)
 {
   g_log (g_log_domain_gstreamer, G_LOG_LEVEL_INFO, 
-                 "%d live buffers", _gst_buffer_live);
+                 "%d live buffer(s)", _gst_buffer_live);
 }
 
 /**
index 1332d53..475b8a1 100644 (file)
@@ -68,6 +68,7 @@ typedef enum {
 
   GST_SEEK_FLAG_FLUSH          = (1 << (GST_SEEK_FLAGS_SHIFT + 0)),
   GST_SEEK_FLAG_ACCURATE       = (1 << (GST_SEEK_FLAGS_SHIFT + 1)),
+  GST_SEEK_FLAG_KEY_UNIT       = (1 << (GST_SEEK_FLAGS_SHIFT + 2)),
 } GstSeekType;
 
 typedef enum {
index c1808c1..477af6a 100644 (file)
@@ -131,10 +131,10 @@ typedef void                      (*GstPadChainFunction)          (GstPad *pad,GstBuffer *buf);
 typedef GstBuffer*             (*GstPadGetFunction)            (GstPad *pad);
 typedef gboolean               (*GstPadEventFunction)          (GstPad *pad, GstEvent *event);
 typedef gboolean               (*GstPadConvertFunction)        (GstPad *pad, 
-                                                                GstSeekType src_format,  gint64  src_value,
-                                                                GstSeekType *dest_format, gint64 *dest_value);
+                                                                GstFormat src_format,  gint64  src_value,
+                                                                GstFormat *dest_format, gint64 *dest_value);
 typedef gboolean               (*GstPadQueryFunction)          (GstPad *pad, GstPadQueryType type,
-                                                                GstSeekType *format, gint64  *value);
+                                                                GstFormat *format, gint64  *value);
 typedef GList*                 (*GstPadIntConnFunction)        (GstPad *pad);
 
 typedef GstPadConnectReturn    (*GstPadConnectFunction)        (GstPad *pad, GstCaps *caps);