[gst-devel] patch gstfilesrc.c

Jim Thornton jthornton at parc.com
Fri Mar 22 19:14:03 CET 2002


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

--- gstfilesrc.c.orig   Fri Mar 22 11:33:10 2002
+++ gstfilesrc.c        Fri Mar 22 11:33:34 2002
@@ -362,7 +362,8 @@
   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;






More information about the gstreamer-devel mailing list