mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
Fix compiler warnings
This commit is contained in:
parent
0bc20cb186
commit
a0e06b965a
1 changed files with 12 additions and 6 deletions
|
@ -444,6 +444,8 @@ gst_assrender_chain_video (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
/* now start rendering subtitles, if all conditions are met */
|
/* now start rendering subtitles, if all conditions are met */
|
||||||
if (render->renderer_init_ok && render->track_init_ok && render->enable) {
|
if (render->renderer_init_ok && render->track_init_ok && render->enable) {
|
||||||
|
int counter;
|
||||||
|
|
||||||
timestamp = GST_BUFFER_TIMESTAMP (buffer);
|
timestamp = GST_BUFFER_TIMESTAMP (buffer);
|
||||||
GST_DEBUG_OBJECT (render, "rendering frame for timestamp %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (render, "rendering frame for timestamp %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (timestamp));
|
GST_TIME_ARGS (timestamp));
|
||||||
|
@ -467,7 +469,7 @@ gst_assrender_chain_video (GstPad * pad, GstBuffer * buffer)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int counter = 0;
|
counter = 0;
|
||||||
while (ass_image) {
|
while (ass_image) {
|
||||||
/* blend subtitles onto the video frame */
|
/* blend subtitles onto the video frame */
|
||||||
guint8 alpha = 255 - ((ass_image->color) & 0xff);
|
guint8 alpha = 255 - ((ass_image->color) & 0xff);
|
||||||
|
@ -581,21 +583,23 @@ gst_assrender_event_video (GstPad * pad, GstEvent * event)
|
||||||
}
|
}
|
||||||
case GST_EVENT_TAG:
|
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 ();
|
GstTagList *taglist = gst_tag_list_new ();
|
||||||
guint tag_size;
|
guint tag_size;
|
||||||
guint index;
|
guint index;
|
||||||
|
|
||||||
|
/* tag events may contain attachments which might be fonts */
|
||||||
|
GST_DEBUG_OBJECT (render, "got TAG event");
|
||||||
|
|
||||||
gst_event_parse_tag (event, &taglist);
|
gst_event_parse_tag (event, &taglist);
|
||||||
tag_size = gst_tag_list_get_tag_size (taglist, GST_TAG_ATTACHMENT);
|
tag_size = gst_tag_list_get_tag_size (taglist, GST_TAG_ATTACHMENT);
|
||||||
if (tag_size > 0 && render->embeddedfonts) {
|
if (tag_size > 0 && render->embeddedfonts) {
|
||||||
GST_DEBUG_OBJECT (render, "TAG event has attachments");
|
|
||||||
const GValue *value;
|
const GValue *value;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (render, "TAG event has attachments");
|
||||||
|
|
||||||
for (index = 0; index < tag_size; index++) {
|
for (index = 0; index < tag_size; index++) {
|
||||||
value = gst_tag_list_get_value_index (taglist, GST_TAG_ATTACHMENT,
|
value = gst_tag_list_get_value_index (taglist, GST_TAG_ATTACHMENT,
|
||||||
index);
|
index);
|
||||||
|
@ -677,20 +681,22 @@ gst_assrender_event_text (GstPad * pad, GstEvent * event)
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_TAG:
|
case GST_EVENT_TAG:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (render, "got TAG event");
|
|
||||||
GstTagList *taglist = gst_tag_list_new ();
|
GstTagList *taglist = gst_tag_list_new ();
|
||||||
guint tag_size;
|
guint tag_size;
|
||||||
guint index;
|
guint index;
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (render, "got TAG event");
|
||||||
|
|
||||||
gst_event_parse_tag (event, &taglist);
|
gst_event_parse_tag (event, &taglist);
|
||||||
tag_size = gst_tag_list_get_tag_size (taglist, GST_TAG_ATTACHMENT);
|
tag_size = gst_tag_list_get_tag_size (taglist, GST_TAG_ATTACHMENT);
|
||||||
if (tag_size > 0 && render->embeddedfonts) {
|
if (tag_size > 0 && render->embeddedfonts) {
|
||||||
GST_DEBUG_OBJECT (render, "TAG event has attachments");
|
|
||||||
const GValue *value;
|
const GValue *value;
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (render, "TAG event has attachments");
|
||||||
|
|
||||||
for (index = 0; index < tag_size; index++) {
|
for (index = 0; index < tag_size; index++) {
|
||||||
value = gst_tag_list_get_value_index (taglist, GST_TAG_ATTACHMENT,
|
value = gst_tag_list_get_value_index (taglist, GST_TAG_ATTACHMENT,
|
||||||
index);
|
index);
|
||||||
|
|
Loading…
Reference in a new issue