Newer
Older
Sebastian Dröge
committed
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
- return GST_FLOW_ERROR;
- }
+parse_error:
+ GST_ELEMENT_ERROR (flxdec, STREAM, DECODE,
+ ("%s", "Failed to parse stream"), (NULL));
+unmap_input_error:
+ gst_buffer_unmap (input, &map_info);
+ gst_buffer_unref (input);
+error:
+ return GST_FLOW_ERROR;
}
static GstStateChangeReturn
diff --git a/gst/flx/gstflxdec.h b/gst/flx/gstflxdec.h
index 3f9a0aa..4fd8dfd 100644
--- a/gst/flx/gstflxdec.h
+++ b/gst/flx/gstflxdec.h
@@ -23,6 +23,8 @@
#include <gst/gst.h>
#include <gst/base/gstadapter.h>
+#include <gst/base/gstbytereader.h>
+#include <gst/base/gstbytewriter.h>
#include "flx_color.h"
G_BEGIN_DECLS
@@ -45,7 +47,7 @@ struct _GstFlxDec {
guint8 *delta_data, *frame_data;
GstAdapter *adapter;
- gulong size;
+ gsize size;
GstFlxDecState state;
gint64 frame_time;
gint64 next_time;
--
2.10.2