mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
g_memmove() is deprecated
Just use plain memmove(), g_memmove() is deprecated in recent GLib versions. https://bugzilla.gnome.org/show_bug.cgi?id=712811
This commit is contained in:
parent
3a1199c2f7
commit
d9c2914c90
10 changed files with 10 additions and 10 deletions
|
@ -36,7 +36,7 @@ GST_DEBUG_CATEGORY_EXTERN (wavpack_debug);
|
|||
gboolean
|
||||
gst_wavpack_read_header (WavpackHeader * header, guint8 * buf)
|
||||
{
|
||||
g_memmove (header, buf, sizeof (WavpackHeader));
|
||||
memmove (header, buf, sizeof (WavpackHeader));
|
||||
|
||||
#ifndef WAVPACK_OLD_API
|
||||
WavpackLittleEndianToNative (header, (char *) WavpackHeaderFormat);
|
||||
|
|
|
@ -39,7 +39,7 @@ gst_wavpack_stream_reader_read_bytes (void *id, void *data, int32_t bcount)
|
|||
rid->length, rid->position);
|
||||
|
||||
if (to_read > 0) {
|
||||
g_memmove (data, rid->buffer + rid->position, to_read);
|
||||
memmove (data, rid->buffer + rid->position, to_read);
|
||||
rid->position += to_read;
|
||||
return to_read;
|
||||
} else {
|
||||
|
|
|
@ -214,7 +214,7 @@ ape_demux_parse_tags (const guint8 * data, gint size)
|
|||
while (sp != NULL && (sp2 = strchr (sp + 1, ' ')) != NULL)
|
||||
sp = sp2;
|
||||
if (sp) {
|
||||
g_memmove (val, sp + 1, strlen (sp + 1) + 1);
|
||||
memmove (val, sp + 1, strlen (sp + 1) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ gst_auto_audio_sink_create_element_with_pretty_name (GstAutoAudioSink * sink,
|
|||
if (g_str_has_suffix (marker, "sink"))
|
||||
marker[strlen (marker) - 4] = '\0';
|
||||
if (g_str_has_prefix (marker, "gst"))
|
||||
g_memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
name = g_strdup_printf ("%s-actual-sink-%s", GST_OBJECT_NAME (sink), marker);
|
||||
g_free (marker);
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ gst_auto_audio_src_create_element_with_pretty_name (GstAutoAudioSrc * src,
|
|||
if (g_str_has_suffix (marker, "src"))
|
||||
marker[strlen (marker) - 4] = '\0';
|
||||
if (g_str_has_prefix (marker, "gst"))
|
||||
g_memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
name = g_strdup_printf ("%s-actual-src-%s", GST_OBJECT_NAME (src), marker);
|
||||
g_free (marker);
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@ gst_auto_video_sink_create_element_with_pretty_name (GstAutoVideoSink * sink,
|
|||
if (g_str_has_suffix (marker, "sink"))
|
||||
marker[strlen (marker) - 4] = '\0';
|
||||
if (g_str_has_prefix (marker, "gst"))
|
||||
g_memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
name = g_strdup_printf ("%s-actual-sink-%s", GST_OBJECT_NAME (sink), marker);
|
||||
g_free (marker);
|
||||
|
||||
|
|
|
@ -206,7 +206,7 @@ gst_auto_video_src_create_element_with_pretty_name (GstAutoVideoSrc * src,
|
|||
if (g_str_has_suffix (marker, "src"))
|
||||
marker[strlen (marker) - 4] = '\0';
|
||||
if (g_str_has_prefix (marker, "gst"))
|
||||
g_memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
memmove (marker, marker + 3, strlen (marker + 3) + 1);
|
||||
name = g_strdup_printf ("%s-actual-src-%s", GST_OBJECT_NAME (src), marker);
|
||||
g_free (marker);
|
||||
|
||||
|
|
|
@ -609,7 +609,7 @@ gst_rtp_dtmf_src_create_next_rtp_packet (GstRTPDTMFSrc * dtmfsrc)
|
|||
payload = (GstRTPDTMFPayload *) gst_rtp_buffer_get_payload (&rtpbuffer);
|
||||
|
||||
/* copy payload and convert to network-byte order */
|
||||
g_memmove (payload, dtmfsrc->payload, sizeof (GstRTPDTMFPayload));
|
||||
memmove (payload, dtmfsrc->payload, sizeof (GstRTPDTMFPayload));
|
||||
|
||||
payload->duration = g_htons (payload->duration);
|
||||
|
||||
|
|
|
@ -2870,7 +2870,7 @@ atom_moov_add_tag (AtomMOOV * moov, guint32 fourcc, guint32 flags,
|
|||
tag = atom_tag_new (fourcc, flags);
|
||||
tdata = &tag->data;
|
||||
atom_tag_data_alloc_data (tdata, size);
|
||||
g_memmove (tdata->data, data, size);
|
||||
memmove (tdata->data, data, size);
|
||||
|
||||
atom_moov_append_tag (moov,
|
||||
build_atom_info_wrapper ((Atom *) tag, atom_tag_copy_data,
|
||||
|
|
|
@ -2942,7 +2942,7 @@ gst_matroska_demux_add_wvpk_header (GstElement * element,
|
|||
GST_WRITE_UINT32_LE (outdata + outpos + 24, crc);
|
||||
outpos += 28;
|
||||
|
||||
g_memmove (outdata + outpos, data, blocksize);
|
||||
memmove (outdata + outpos, data, blocksize);
|
||||
outpos += blocksize;
|
||||
data += blocksize;
|
||||
size -= blocksize;
|
||||
|
|
Loading…
Reference in a new issue