Buffer flag symbols are enum values, so |'ing together doesn't do the right thing, must use GST_BUFFER_FLAG_SET macro

Original commit message from CVS:
patch from jim thornton <jthornton@parc.com>:

Buffer flag symbols are enum values, so |'ing together doesn't do the right
thing, must use GST_BUFFER_FLAG_SET macro
This commit is contained in:
jim thornton 2002-04-02 16:33:21 +00:00 committed by Andy Wingo
parent b2fa9adc50
commit 7fb5bcfdff
3 changed files with 5 additions and 3 deletions

2
common

@ -1 +1 @@
Subproject commit 38267abf56a3428093cea71429dca6a24a927547
Subproject commit 6148068f2318e85d8e66df485342b630d8fb49ac

View file

@ -362,7 +362,8 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
retval = madvise(GST_BUFFER_DATA(buf),GST_BUFFER_SIZE(buf),MADV_SEQUENTIAL);
#endif
/* fill in the rest of the fields */
GST_BUFFER_FLAGS(buf) = GST_BUFFER_READONLY | GST_BUFFER_ORIGINAL;
GST_BUFFER_FLAG_SET(buf) = GST_BUFFER_READONLY;
GST_BUFFER_FLAG_SET(buf) = GST_BUFFER_ORIGINAL;
GST_BUFFER_SIZE(buf) = size;
GST_BUFFER_MAXSIZE(buf) = size;
GST_BUFFER_OFFSET(buf) = offset;

View file

@ -362,7 +362,8 @@ gst_filesrc_map_region (GstFileSrc *src, off_t offset, size_t size)
retval = madvise(GST_BUFFER_DATA(buf),GST_BUFFER_SIZE(buf),MADV_SEQUENTIAL);
#endif
/* fill in the rest of the fields */
GST_BUFFER_FLAGS(buf) = GST_BUFFER_READONLY | GST_BUFFER_ORIGINAL;
GST_BUFFER_FLAG_SET(buf) = GST_BUFFER_READONLY;
GST_BUFFER_FLAG_SET(buf) = GST_BUFFER_ORIGINAL;
GST_BUFFER_SIZE(buf) = size;
GST_BUFFER_MAXSIZE(buf) = size;
GST_BUFFER_OFFSET(buf) = offset;