diff --git a/gst/elements/gstfilesrc.c b/gst/elements/gstfilesrc.c index f6843e1998..c2f0f5334a 100644 --- a/gst/elements/gstfilesrc.c +++ b/gst/elements/gstfilesrc.c @@ -511,8 +511,9 @@ gst_filesrc_get (GstPad *pad) /* if we need to touch the buffer (to bring it into memory), do so */ if (src->touch) { + volatile guchar *p = GST_BUFFER_DATA (buf), c; for (i=0;ipagesize) - *(GST_BUFFER_DATA(buf)+i) = *(GST_BUFFER_DATA(buf)+i); + c = p[i]; } /* we're done, return the buffer */ diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index f6843e1998..c2f0f5334a 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -511,8 +511,9 @@ gst_filesrc_get (GstPad *pad) /* if we need to touch the buffer (to bring it into memory), do so */ if (src->touch) { + volatile guchar *p = GST_BUFFER_DATA (buf), c; for (i=0;ipagesize) - *(GST_BUFFER_DATA(buf)+i) = *(GST_BUFFER_DATA(buf)+i); + c = p[i]; } /* we're done, return the buffer */