问题
can any one guide me on how do we can add/insert the Gstbufffer to the GstBuffer pool?
The GstBuffer Pool configuration is as shown below.
pool = gst_buffer_pool_new();
config = gst_buffer_pool_get_config(pool);
size = 420*420*3; // size of the pool buffer
min_ = 1;
max_ = 5;
caps = gst_caps_from_string("video/x-raw");
gst_buffer_pool_config_set_params (config, caps, size, min_, max_);
gst_caps_unref(caps);
if ( gst_buffer_pool_set_config (pool, config)){
std::cout << "[INFO] Pool configuration done successfully\n";
else
std::cout << "{[ERROR] Failed to set the pool config.\n";}
//GstBuffer *buf= frmae;
//GstBuffer buf wanted to add inside GstBuffer Pool.
Please also let me know if anything here I am doing wrong.
来源:https://stackoverflow.com/questions/64044659/adding-inserting-a-gstbuffer-to-the-gstbuffer-pool