ssaparse: ignore invalid UTF-8 in init section
[platform/upstream/gstreamer.git] / gst / subparse / gstsubparse.h
index 25a8b37..2da2012 100644 (file)
@@ -14,8 +14,8 @@
  *
  * You should have received a copy of the GNU Library General Public
  * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
  */
 
 #ifndef __GST_SUBPARSE_H__
@@ -54,7 +54,8 @@ typedef enum
   GST_SUB_PARSE_FORMAT_TMPLAYER = 5,
   GST_SUB_PARSE_FORMAT_MPL2 = 6,
   GST_SUB_PARSE_FORMAT_SUBVIEWER = 7,
-  GST_SUB_PARSE_FORMAT_DKS = 8
+  GST_SUB_PARSE_FORMAT_DKS = 8,
+  GST_SUB_PARSE_FORMAT_QTTEXT = 9
 } GstSubParseFormat;
 
 typedef struct {
@@ -65,7 +66,8 @@ typedef struct {
   guint64  max_duration; /* to clamp duration, 0 = no limit (used by tmplayer parser) */
   GstSegment *segment;
   gpointer user_data;
-  gdouble  fps;          /* used by frame based parsers */
+  gboolean have_internal_fps; /* If TRUE don't overwrite fps by property */
+  gint fps_n, fps_d;     /* used by frame based parsers */
 } ParserState;
 
 typedef gchar* (*Parser) (ParserState *state, const gchar *line);
@@ -93,7 +95,6 @@ struct _GstSubParse {
   
   /* Segment */
   GstSegment    segment;
-  GstSeekFlags  segment_flags;
   gboolean      need_segment;
   
   gboolean flushing;
@@ -104,7 +105,7 @@ struct _GstSubParse {
   gboolean first_buffer;
 
   /* used by frame based parsers */
-  gdouble  fps;          
+  gint fps_n, fps_d;          
 };
 
 struct _GstSubParseClass {