Don't wrtie to the page we have mmaped read only.

Original commit message from CVS:
Don't wrtie to the page we have mmaped read only.
This commit is contained in:
Wim Taymans 2001-12-14 12:15:27 +00:00
parent 3fbb463174
commit 04b1c69ce1
2 changed files with 4 additions and 2 deletions

View file

@ -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;i<GST_BUFFER_SIZE(buf);i+=src->pagesize)
*(GST_BUFFER_DATA(buf)+i) = *(GST_BUFFER_DATA(buf)+i);
c = p[i];
}
/* we're done, return the buffer */

View file

@ -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;i<GST_BUFFER_SIZE(buf);i+=src->pagesize)
*(GST_BUFFER_DATA(buf)+i) = *(GST_BUFFER_DATA(buf)+i);
c = p[i];
}
/* we're done, return the buffer */