Revert "context: use context on buffers instead of caps"
[platform/upstream/gstreamer.git] / libs / gst / base / gstbasesrc.c
index 34b9bab..7f12b41 100644 (file)
@@ -2160,10 +2160,10 @@ again:
     GST_BUFFER_TIMESTAMP (*buf) = 0;
   }
 
-  /* set pad context on the buffer if the buffer had no caps */
-  if (GST_BUFFER_CONTEXT (*buf) == NULL) {
+  /* set pad caps on the buffer if the buffer had no caps */
+  if (GST_BUFFER_CAPS (*buf) == NULL) {
     *buf = gst_buffer_make_writable (*buf);
-    gst_buffer_set_context (*buf, GST_PAD_CONTEXT (src->srcpad));
+    gst_buffer_set_caps (*buf, GST_PAD_CAPS (src->srcpad));
   }
 
   /* now sync before pushing the buffer */