From 87aed1a2565a8b9e2b4af6ef980596a0c4d6f1a6 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Tue, 18 Dec 2007 13:30:15 +0000 Subject: gst/avi/gstavisubtitle.*: Refactor a bit; fix name extraction; don't assume all the data in the chunk is actually sub... Original commit message from CVS: * gst/avi/gstavisubtitle.c: (src_template), (gst_avi_subtitle_extract_utf8_file), (gst_avi_subtitle_parse_gab2_chunk), (gst_avi_subtitle_chain), (gst_avi_subtitle_base_init), (gst_avi_subtitle_class_init), (gst_avi_subtitle_init), (gst_avi_subtitle_change_state): * gst/avi/gstavisubtitle.h: Refactor a bit; fix name extraction; don't assume all the data in the chunk is actually subtitle data, there may be padding at the end; fix GST_ELEMENT_ERROR usage; store extracted subtitle file so it's there to send again after a seek (for future use). --- gst/avi/gstavisubtitle.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gst/avi/gstavisubtitle.h') diff --git a/gst/avi/gstavisubtitle.h b/gst/avi/gstavisubtitle.h index 866466a7..0cf07428 100644 --- a/gst/avi/gstavisubtitle.h +++ b/gst/avi/gstavisubtitle.h @@ -24,8 +24,10 @@ struct _GstAviSubtitle { GstElement parent; - GstPad* src; - GstPad* sink; + GstPad *src; + GstPad *sink; + + GstBuffer *subfile; /* the complete subtitle file in one buffer */ }; struct _GstAviSubtitleClass -- cgit