diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-05 16:57:55 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-02-05 17:52:38 +0100 |
commit | a0e06b965a3ef372652ae8c0e99babce6b83ff08 (patch) | |
tree | f5635950ddda00686ddf6d9a46b18ccb709ec4ce /ext | |
parent | 0bc20cb186574ddda39a80acef491e9af7045cfc (diff) | |
download | gst-plugins-bad-a0e06b965a3ef372652ae8c0e99babce6b83ff08.tar.gz gst-plugins-bad-a0e06b965a3ef372652ae8c0e99babce6b83ff08.tar.bz2 gst-plugins-bad-a0e06b965a3ef372652ae8c0e99babce6b83ff08.zip |
Fix compiler warnings
Diffstat (limited to 'ext')
-rw-r--r-- | ext/assrender/gstassrender.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c index 38f0d07b..dc1feb54 100644 --- a/ext/assrender/gstassrender.c +++ b/ext/assrender/gstassrender.c @@ -444,6 +444,8 @@ gst_assrender_chain_video (GstPad * pad, GstBuffer * buffer) /* now start rendering subtitles, if all conditions are met */ if (render->renderer_init_ok && render->track_init_ok && render->enable) { + int counter; + timestamp = GST_BUFFER_TIMESTAMP (buffer); GST_DEBUG_OBJECT (render, "rendering frame for timestamp %" GST_TIME_FORMAT, GST_TIME_ARGS (timestamp)); @@ -467,7 +469,7 @@ gst_assrender_chain_video (GstPad * pad, GstBuffer * buffer) return ret; } - int counter = 0; + counter = 0; while (ass_image) { /* blend subtitles onto the video frame */ guint8 alpha = 255 - ((ass_image->color) & 0xff); @@ -581,21 +583,23 @@ gst_assrender_event_video (GstPad * pad, GstEvent * event) } case GST_EVENT_TAG: { - /* tag events may contain attachments which might be fonts */ - GST_DEBUG_OBJECT (render, "got TAG event"); GstTagList *taglist = gst_tag_list_new (); guint tag_size; guint index; + /* tag events may contain attachments which might be fonts */ + GST_DEBUG_OBJECT (render, "got TAG event"); + gst_event_parse_tag (event, &taglist); tag_size = gst_tag_list_get_tag_size (taglist, GST_TAG_ATTACHMENT); if (tag_size > 0 && render->embeddedfonts) { - GST_DEBUG_OBJECT (render, "TAG event has attachments"); const GValue *value; GstBuffer *buf; GstCaps *caps; GstStructure *structure; + GST_DEBUG_OBJECT (render, "TAG event has attachments"); + for (index = 0; index < tag_size; index++) { value = gst_tag_list_get_value_index (taglist, GST_TAG_ATTACHMENT, index); @@ -677,20 +681,22 @@ gst_assrender_event_text (GstPad * pad, GstEvent * event) break; case GST_EVENT_TAG: { - GST_DEBUG_OBJECT (render, "got TAG event"); GstTagList *taglist = gst_tag_list_new (); guint tag_size; guint index; + GST_DEBUG_OBJECT (render, "got TAG event"); + gst_event_parse_tag (event, &taglist); tag_size = gst_tag_list_get_tag_size (taglist, GST_TAG_ATTACHMENT); if (tag_size > 0 && render->embeddedfonts) { - GST_DEBUG_OBJECT (render, "TAG event has attachments"); const GValue *value; GstBuffer *buf; GstCaps *caps; GstStructure *structure; + GST_DEBUG_OBJECT (render, "TAG event has attachments"); + for (index = 0; index < tag_size; index++) { value = gst_tag_list_get_value_index (taglist, GST_TAG_ATTACHMENT, index); |