mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
gst/subparse/samiparse.c: Need to map "silver" colour explicitly (#169936).
Original commit message from CVS: Patch by: Young-Ho Cha <ganadist at chollian net> * gst/subparse/samiparse.c: (handle_start_font): Need to map "silver" colour explicitly (#169936).
This commit is contained in:
parent
e0cbb1036c
commit
5fcd152dac
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
Patch by: Young-Ho Cha <ganadist at chollian net>
|
||||||
|
|
||||||
|
* gst/subparse/samiparse.c: (handle_start_font):
|
||||||
|
Need to map "silver" colour explicitly (#169936).
|
||||||
|
|
||||||
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
|
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
Patch by: Young-Ho Cha <ganadist at chollian net>
|
Patch by: Young-Ho Cha <ganadist at chollian net>
|
||||||
|
|
|
@ -173,6 +173,11 @@ handle_start_font (GstSamiContext * sctx, const xmlChar ** atts)
|
||||||
sharp = "#";
|
sharp = "#";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* silver colour can be found in many sami files, but X RGB database
|
||||||
|
* doesn't contain a colour by this name, so map explicitly */
|
||||||
|
if (!xmlStrncmp ((const xmlChar *) "silver", value, 6)) {
|
||||||
|
value = (const xmlChar *) "#c0c0c0";
|
||||||
|
}
|
||||||
g_string_append_printf (sctx->buf, "<span foreground=\"%s%s\">", sharp,
|
g_string_append_printf (sctx->buf, "<span foreground=\"%s%s\">", sharp,
|
||||||
value);
|
value);
|
||||||
sami_context_push_state (sctx, COLOR_TAG);
|
sami_context_push_state (sctx, COLOR_TAG);
|
||||||
|
|
Loading…
Reference in a new issue