diff options
Diffstat (limited to 'gst/real/gstrealvideodec.h')
-rw-r--r-- | gst/real/gstrealvideodec.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gst/real/gstrealvideodec.h b/gst/real/gstrealvideodec.h index d4251223..e7fbbd93 100644 --- a/gst/real/gstrealvideodec.h +++ b/gst/real/gstrealvideodec.h @@ -42,6 +42,17 @@ enum _GstRealVideoDecVersion GST_REAL_VIDEO_DEC_VERSION_4 = 4 }; +typedef struct { + gpointer handle; + + guint32 (*custom_message) (gpointer, gpointer); + guint32 (*free) (gpointer); + guint32 (*init) (gpointer, gpointer); + guint32 (*transform) (gchar *, gchar *, gpointer, gpointer, gpointer); + + gpointer context; +} GstRealVideoDecHooks; + struct _GstRealVideoDec { GstElement parent; @@ -59,14 +70,7 @@ struct _GstRealVideoDec guint16 next_seq, last_seq; /* Hooks */ - gpointer handle; - guint32 (*custom_message) (gpointer, gpointer); - guint32 (*free) (gpointer); - guint32 (*init) (gpointer, gpointer); - guint32 (*transform) (gchar *, gchar *, gpointer, gpointer, gpointer); - - /* Used by the REAL library. */ - gpointer context; + GstRealVideoDecHooks hooks; /* State */ GstAdapter *adapter; |