mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
Add -Wwrite-strings
and fix its warnings
This commit is contained in:
parent
9bb7806e01
commit
8915626090
1 changed files with 4 additions and 6 deletions
|
@ -38,7 +38,7 @@ static gboolean
|
||||||
probe_cb (GstPad * pad, GstMiniObject * obj, gpointer user_data)
|
probe_cb (GstPad * pad, GstMiniObject * obj, gpointer user_data)
|
||||||
{
|
{
|
||||||
gint count = 0;
|
gint count = 0;
|
||||||
gchar *count_type = NULL;
|
const gchar *count_type = NULL;
|
||||||
|
|
||||||
GST_LOG_OBJECT (pad, "got data");
|
GST_LOG_OBJECT (pad, "got data");
|
||||||
|
|
||||||
|
@ -184,17 +184,15 @@ count_output_buffers (GList * output_pads, gint expected_buffers)
|
||||||
static void
|
static void
|
||||||
selector_set_active_pad (GstElement * elem, GstPad * selpad)
|
selector_set_active_pad (GstElement * elem, GstPad * selpad)
|
||||||
{
|
{
|
||||||
gchar *padname = "";
|
gchar *padname = NULL;
|
||||||
|
|
||||||
if (selpad) {
|
if (selpad) {
|
||||||
padname = gst_pad_get_name (selpad);
|
padname = gst_pad_get_name (selpad);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_set (G_OBJECT (elem), "active-pad", selpad, NULL);
|
g_object_set (G_OBJECT (elem), "active-pad", selpad, NULL);
|
||||||
GST_DEBUG_OBJECT (elem, "activated selector pad: %s", padname);
|
GST_DEBUG_OBJECT (elem, "activated selector pad: %s", GST_STR_NULL (padname));
|
||||||
if (selpad) {
|
|
||||||
g_free (padname);
|
g_free (padname);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Push buffers and switch for each selector pad */
|
/* Push buffers and switch for each selector pad */
|
||||||
|
|
Loading…
Reference in a new issue