mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Add G_DISABLE_DEPRECATED and fix deprecated code
Original commit message from CVS: Add G_DISABLE_DEPRECATED and fix deprecated code
This commit is contained in:
parent
5539c318e7
commit
b75efb7f59
4 changed files with 8 additions and 3 deletions
|
@ -53,6 +53,7 @@ dnl decide on error flags
|
|||
AS_COMPILER_FLAG(-Wall,GST_ERROR="$GST_ERROR -Wall",GST_ERROR="$GST_ERROR")
|
||||
if test "x$GST_CVS" = "xyes"; then
|
||||
AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
|
||||
GST_ERROR="$GST_ERROR -DG_DISABLE_DEPRECATED"
|
||||
fi
|
||||
|
||||
dnl We disable static building for development, for time savings
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include "gsttee.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_tee_debug);
|
||||
#define GST_CAT_DEFAULT gst_tee_debug
|
||||
|
||||
|
@ -241,7 +243,7 @@ gint name_pad_compare (gconstpointer a, gconstpointer b)
|
|||
|
||||
g_assert (GST_IS_PAD (pad));
|
||||
|
||||
return g_strcasecmp (name, gst_pad_get_name (pad)); /* returns 0 if match */
|
||||
return strcmp (name, gst_pad_get_name (pad)); /* returns 0 if match */
|
||||
}
|
||||
|
||||
static GstPad*
|
||||
|
|
|
@ -209,7 +209,7 @@ gst_util_set_object_arg (GObject * object, const gchar * name, const gchar * val
|
|||
case G_TYPE_BOOLEAN:{
|
||||
gboolean i = FALSE;
|
||||
|
||||
if (!g_strncasecmp ("true", value, 4))
|
||||
if (!g_ascii_strncasecmp ("true", value, 4))
|
||||
i = TRUE;
|
||||
g_object_set (G_OBJECT (object), name, i, NULL);
|
||||
break;
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include "gsttee.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_tee_debug);
|
||||
#define GST_CAT_DEFAULT gst_tee_debug
|
||||
|
||||
|
@ -241,7 +243,7 @@ gint name_pad_compare (gconstpointer a, gconstpointer b)
|
|||
|
||||
g_assert (GST_IS_PAD (pad));
|
||||
|
||||
return g_strcasecmp (name, gst_pad_get_name (pad)); /* returns 0 if match */
|
||||
return strcmp (name, gst_pad_get_name (pad)); /* returns 0 if match */
|
||||
}
|
||||
|
||||
static GstPad*
|
||||
|
|
Loading…
Reference in a new issue