Created fork of mafw-gst-renderer with subtitles support
[mafwsubrenderer] / libmafw-gst-renderer / mafw-gst-renderer-worker.h
index d59c09a..01c8156 100644 (file)
@@ -64,6 +64,10 @@ typedef enum {
  *   seekable:           Tells whether the media can be seeked
  *   par_n:              Video pixel aspect ratio numerator
  *   par_d:              Video pixel aspect ratio denominator
+ * subtitles:     Configuration of subtitles.
+ *   enabled:            Are subtitles enabled
+ *   font:               Subtitles font description
+ *   encoding:           Subtitles encoding
  * owner:        Owner of the worker; usually a MafwGstRenderer (FIXME USUALLY?)
  * pipeline:     Playback pipeline
  * bus:          Message bus
@@ -81,6 +85,7 @@ typedef enum {
  * seek_position:       Indicates the pos where to seek, in seconds
  * vsink:               Video sink element of the pipeline
  * asink:               Audio sink element of the pipeline
+ * tsink:               Text sink element of the pipeline
  * xid:                 XID for video playback
  * current_frame_on_pause: whether to emit current frame when pausing
  */
@@ -96,6 +101,11 @@ struct _MafwGstRendererWorker {
                gint par_n;
                gint par_d;
        } media;
+       struct {
+               gboolean enabled;
+               gchar *font;
+               gchar *encoding;
+       } subtitles;
        PlaybackMode mode;
        struct {
                GSList *items;
@@ -150,6 +160,7 @@ struct _MafwGstRendererWorker {
        gboolean in_ready;
        GstElement *vsink;
        GstElement *asink;
+       GstElement *tsink;
        XID xid;
        gboolean autopaint;
        gint colorkey;