Stop using deprecated GLib functions.

Original commit message from CVS:
* ext/cairo/gsttextoverlay.c: (gst_text_overlay_set_property):
* gst/debug/tests.c: (md5_get_value):
* gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_setcaps):
* gst/rtp/gstrtpilbcpay.c: (gst_rtpilbcpay_setcaps):
* gst/rtp/gstrtptheoradepay.c: (gst_rtp_theora_depay_setcaps):
* gst/rtp/gstrtpvorbisdepay.c: (gst_rtp_vorbis_depay_setcaps):
Stop using deprecated GLib functions.
This commit is contained in:
Sebastian Dröge 2008-04-24 22:01:52 +00:00
parent 5990c11c1d
commit 287b38dc70
7 changed files with 26 additions and 16 deletions

View file

@ -1,3 +1,13 @@
2008-04-24 Sebastian Dröge <slomo@circular-chaos.org>
* ext/cairo/gsttextoverlay.c: (gst_text_overlay_set_property):
* gst/debug/tests.c: (md5_get_value):
* gst/rtp/gstrtph263pdepay.c: (gst_rtp_h263p_depay_setcaps):
* gst/rtp/gstrtpilbcpay.c: (gst_rtpilbcpay_setcaps):
* gst/rtp/gstrtptheoradepay.c: (gst_rtp_theora_depay_setcaps):
* gst/rtp/gstrtpvorbisdepay.c: (gst_rtp_vorbis_depay_setcaps):
Stop using deprecated GLib functions.
2008-04-24 Jan Schmidt <jan.schmidt@sun.com> 2008-04-24 Jan Schmidt <jan.schmidt@sun.com>
* configure.ac: * configure.ac:

View file

@ -339,11 +339,11 @@ gst_text_overlay_set_property (GObject * object, guint prop_id,
case ARG_VALIGN:{ case ARG_VALIGN:{
const gchar *s = g_value_get_string (value); const gchar *s = g_value_get_string (value);
if (g_strcasecmp (s, "baseline") == 0) if (g_ascii_strcasecmp (s, "baseline") == 0)
overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_BASELINE; overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_BASELINE;
else if (g_strcasecmp (s, "bottom") == 0) else if (g_ascii_strcasecmp (s, "bottom") == 0)
overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_BOTTOM; overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_BOTTOM;
else if (g_strcasecmp (s, "top") == 0) else if (g_ascii_strcasecmp (s, "top") == 0)
overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_TOP; overlay->valign = GST_CAIRO_TEXT_OVERLAY_VALIGN_TOP;
else else
g_warning ("Invalid 'valign' property value: %s", s); g_warning ("Invalid 'valign' property value: %s", s);
@ -352,11 +352,11 @@ gst_text_overlay_set_property (GObject * object, guint prop_id,
case ARG_HALIGN:{ case ARG_HALIGN:{
const gchar *s = g_value_get_string (value); const gchar *s = g_value_get_string (value);
if (g_strcasecmp (s, "left") == 0) if (g_ascii_strcasecmp (s, "left") == 0)
overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_LEFT; overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_LEFT;
else if (g_strcasecmp (s, "right") == 0) else if (g_ascii_strcasecmp (s, "right") == 0)
overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_RIGHT; overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_RIGHT;
else if (g_strcasecmp (s, "center") == 0) else if (g_ascii_strcasecmp (s, "center") == 0)
overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_CENTER; overlay->halign = GST_CAIRO_TEXT_OVERLAY_HALIGN_CENTER;
else else
g_warning ("Invalid 'halign' property value: %s", s); g_warning ("Invalid 'halign' property value: %s", s);

View file

@ -546,7 +546,7 @@ md5_get_value (gpointer test, GValue * value)
str[32] = 0; str[32] = 0;
md5_read_ctx (ctx, str); md5_read_ctx (ctx, str);
g_value_set_string_take_ownership (value, str); g_value_take_string (value, str);
} else { } else {
g_value_set_string (value, ctx->result); g_value_set_string (value, ctx->result);
} }

View file

@ -179,19 +179,19 @@ gst_rtp_h263p_depay_setcaps (GstBaseRTPDepayload * filter, GstCaps * caps)
F = gst_structure_get_string (structure, "f"); F = gst_structure_get_string (structure, "f");
if (F) if (F)
if (g_strcasecmp (F, "1") == 0) if (g_ascii_strcasecmp (F, "1") == 0)
is_h263p = TRUE; is_h263p = TRUE;
I = gst_structure_get_string (structure, "i"); I = gst_structure_get_string (structure, "i");
if (I) if (I)
if (g_strcasecmp (I, "1") == 0) if (g_ascii_strcasecmp (I, "1") == 0)
is_h263p = TRUE; is_h263p = TRUE;
J = gst_structure_get_string (structure, "j"); J = gst_structure_get_string (structure, "j");
if (J) if (J)
if (g_strcasecmp (J, "1") == 0) if (g_ascii_strcasecmp (J, "1") == 0)
is_h263p = TRUE; is_h263p = TRUE;
T = gst_structure_get_string (structure, "t"); T = gst_structure_get_string (structure, "t");
if (T) if (T)
if (g_strcasecmp (T, "1") == 0) if (g_ascii_strcasecmp (T, "1") == 0)
is_h263p = TRUE; is_h263p = TRUE;
K = gst_structure_get_string (structure, "k"); K = gst_structure_get_string (structure, "k");
if (K) if (K)

View file

@ -131,7 +131,7 @@ gst_rtpilbcpay_setcaps (GstBaseRTPPayload * basertppayload, GstCaps * caps)
goto wrong_mode; goto wrong_mode;
payload_name = gst_structure_get_name (structure); payload_name = gst_structure_get_name (structure);
if (g_strcasecmp ("audio/x-iLBC", payload_name)) if (g_ascii_strcasecmp ("audio/x-iLBC", payload_name))
goto wrong_caps; goto wrong_caps;
gst_basertppayload_set_options (basertppayload, "audio", TRUE, "ILBC", 8000); gst_basertppayload_set_options (basertppayload, "audio", TRUE, "ILBC", 8000);

View file

@ -339,9 +339,9 @@ gst_rtp_theora_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
if (delivery_method == NULL) if (delivery_method == NULL)
goto no_delivery_method; goto no_delivery_method;
if (g_strcasecmp (delivery_method, "inline")) { if (g_ascii_strcasecmp (delivery_method, "inline")) {
/* configure string is in the caps */ /* configure string is in the caps */
} else if (g_strcasecmp (delivery_method, "in_band")) { } else if (g_ascii_strcasecmp (delivery_method, "in_band")) {
/* headers will (also) be transmitted in the RTP packets */ /* headers will (also) be transmitted in the RTP packets */
} else if (g_str_has_prefix (delivery_method, "out_band/")) { } else if (g_str_has_prefix (delivery_method, "out_band/")) {
/* some other method of header delivery. */ /* some other method of header delivery. */

View file

@ -347,9 +347,9 @@ gst_rtp_vorbis_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
if (delivery_method == NULL) if (delivery_method == NULL)
goto no_delivery_method; goto no_delivery_method;
if (g_strcasecmp (delivery_method, "inline")) { if (g_ascii_strcasecmp (delivery_method, "inline")) {
/* configure string is in the caps */ /* configure string is in the caps */
} else if (g_strcasecmp (delivery_method, "in_band")) { } else if (g_ascii_strcasecmp (delivery_method, "in_band")) {
/* headers will (also) be transmitted in the RTP packets */ /* headers will (also) be transmitted in the RTP packets */
} else if (g_str_has_prefix (delivery_method, "out_band/")) { } else if (g_str_has_prefix (delivery_method, "out_band/")) {
/* some other method of header delivery. */ /* some other method of header delivery. */