buffer pool: put GstBufferPoolAcquireParams typedef before struct
authorEvan Nemerson <evan@coeus-group.com>
Tue, 19 Jun 2012 23:06:49 +0000 (16:06 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Tue, 19 Jun 2012 23:06:49 +0000 (16:06 -0700)
Works around https://bugzilla.gnome.org/show_bug.cgi?id=581525

gst/gstbufferpool.h

index 3527040..e14855b 100644 (file)
@@ -60,6 +60,8 @@ typedef enum {
   GST_BUFFER_POOL_ACQUIRE_FLAG_LAST     = (1 << 16),
 } GstBufferPoolAcquireFlags;
 
+typedef struct _GstBufferPoolAcquireParams GstBufferPoolAcquireParams;
+
 /**
  * GstBufferPoolAcquireParams:
  * @format: the format of @start and @stop
@@ -74,7 +76,7 @@ typedef enum {
  * implementations can use this extra information to decide what buffer to
  * return.
  */
-typedef struct _GstBufferPoolAcquireParams {
+struct _GstBufferPoolAcquireParams {
   GstFormat                 format;
   gint64                    start;
   gint64                    stop;
@@ -82,7 +84,7 @@ typedef struct _GstBufferPoolAcquireParams {
 
   /*< private >*/
   gpointer _gst_reserved[GST_PADDING];
-} GstBufferPoolAcquireParams;
+};
 
 /**
  * GST_BUFFER_POOL_IS_FLUSHING: