summaryrefslogtreecommitdiffstats
path: root/gst/real/gstrealvideodec.h
diff options
context:
space:
mode:
authorLutz Mueller <lutz@topfrose.de>2007-01-06 10:58:13 +0000
committerEdward Hervey <bilboed@bilboed.com>2007-01-06 10:58:13 +0000
commit30d26643a6be2b18c2fc5edf6408eb0887699ae3 (patch)
tree9d9aa476b26f0bb51d3444f843881f87bf82f3a1 /gst/real/gstrealvideodec.h
parentbda3b5839ae2c899afb4719a4dab4b62a7c7f8dd (diff)
downloadgst-plugins-bad-30d26643a6be2b18c2fc5edf6408eb0887699ae3.tar.gz
gst-plugins-bad-30d26643a6be2b18c2fc5edf6408eb0887699ae3.tar.bz2
gst-plugins-bad-30d26643a6be2b18c2fc5edf6408eb0887699ae3.zip
gst/real/gstrealvideodec.*: Implement error recovery on setcaps failure.
Original commit message from CVS: Patch by: Lutz Mueller <lutz@topfrose.de> * gst/real/gstrealvideodec.c: (gst_real_video_dec_decode), (gst_real_video_dec_setcaps), (open_library), (close_library), (gst_real_video_dec_finalize): * gst/real/gstrealvideodec.h: Implement error recovery on setcaps failure.
Diffstat (limited to 'gst/real/gstrealvideodec.h')
-rw-r--r--gst/real/gstrealvideodec.h20
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;