sub = gst_buffer_create_sub (outbuf,0, ret);/* parent no longer needed, will go away with child buffer */gst_buffer_unref(outbuf); outbuf = sub; }else{/* encoder did not yet produce something */GST_DEBUG_OBJECT (xvidenc,"xvid produced no output");gst_buffer_unref(outbuf); g_...